Does anyone have experience checking that an XML file is well formed and complies with a certain DTD or schema? I would like to add such a check for our message catalog files. Sometimes when those files are hand edited they are messed up. The same thing goes for our .info files.