Validates against XML Schema
xsdvalidate is a utility for validating XML documents
against XML Schemas.
This is not very specific to STILTS, and does not claim to do a better
job than other XSD validators out there, so if you can find another one
that suits your purposes, please use it.
It was added to the package however since it seems hard to find
suitable tools that do this job.
The schema is not specified by runtime parameters,
elements in a given XML document are validated against any schemas
associated with the namespaces defined in that document.
However, it is possible to override the locations of schemas
using runtime parameters.
By using the
schemaloc parameter, you can tell the validator
to validate against a local copy of a schema or one at a given URL,
rather than the copy that is referenced by
xsi:schemaLocation attributes in the document itself.
That can be convenient when developing a schema with a public namespace
that is fixed, but content which is still subject to change.
Moreover, some local copies of W3C and IVOA schemas are kept within the
application, so that external network accesses are not required during
By default, successful validation results in no output and a success exit status, but if there are validation errors then some indication of what went wrong is printed to standard output and the command exits with an error. This makes it suitable for use in makefiles.