Checking an XML schema for correctness using tools
I have a schema that I would like to validate (note: not a document, but the schema itself) for correctness and catching any silly errors. The schema references other schemas, which ar开发者_开发技巧e all together in the same directory. We can't host the schema publicly just yet.
Is there a command-line tool or script for any recent Windows or Unix OS which will allow me to validate each of the schemas and get a report (in any reasonable format)? I don't really want a GUI.
I am using Ant for validation (and other XML tasks, like XSLT transformations). The Validate Task allows you to validate one or more documents. In your specific case, for validating XML Schemas, you need to validate it with the XML Schema Schema.
精彩评论