Choose the right schema language for the job
DTDs
The W3C XML Schema Language
RELAX NG
Schematron