I'm sure that DTD is builtin Ant ... so it verifies your xml file each time you execute it.
 
However, the error messages that Ant delivers are completely non human.
 
- Ramosa