validate.js is a command-line utility for validating an input document against a specified DTD or XML Schema definition. If you don't supply a DTD/schema, it simply reports whether the document is well-formed. Requires MSXML 4.0.
The help information is displayed if you run the utility from the command-line without supplying any arguments as illustrated here:
C:\>validate
usage: validate instance_file ...
For example, the following command validates invoice.xml against invoice.xsd:
C:\>validate invoice.xml invoice.xsd
success: document conforms to DTD/Schema
If the document isn't valid, detailed error information is provided.
Download here.
Posted
Jan 19 2004, 07:58 PM
by
Aaron Skonnard