![]() |
XMLINT
XMLINT checks that a given XML file is well formed. It uses the XML Document Object Model (DOM) to check that the document is also valid according to a Document Type Definition (DTD) or XML-Data Schema. It also supports wild cards for validating a whole directory of files. Usage: xmlint [options] filename(s) Possible options are:
For example, to check that all files in a the d:\samples directory are valid:
Or to check only well-formedness on all .xml files in the d:\samples directory and all .xml files that start with "M" in the c:\temp directory:
Return Codes: xmlint returns an error code equal to the number of files that failed. This was you can write command scripts that respond to failures as follows:
Output: The tool also now gives you nice error output showing you exactly what is wrong with your XML file as follows:
InstallationDownload the
|
|||||
© 1999 Microsoft Corporation. All rights reserved. Terms of Use. |