On any system with libxml2 (xmlsoft.org) installed you can use the utility xmllint to validate an XML file with a specified DTD.
Example:xmllint -dtdvalid tecsce.dtd tecroot.xml
If the file is valid the XML text will be sent to standard output and if the XML does not match the DTD error details are sent to standard error.
No comments:
Post a Comment