I load a .xml file into a DOMDocument and validate this with an .xsd file. After this i got some errors if the xml is not valide, with some line numbers. This works very fin