Sample Package.xml:
<target name=”validateprod”>
<sf:deploy
username=”${sf.fusername}”
password=”${sf.password}”
serverurl=”${sf.sandboxurl}”
checkOnly=true
deployroot=”Retrieve”/>
</target>
Cheers!!!