3. Xsdvalid command reference

xsdvalid ?options? ?xml_doc ... xml_doc?

Checks a W3C XML schema for validity. Checks one or more XML documents for validity against a W3C XML schema.

Options:

-o file

Generate report in file file. Default: output report to console.

-s schema

Use schema schema to validate XML documents. Default: use what is specified by xsi:schemaLocation and xsi:noNamespaceSchemaLocation.

-ss namespace schema

Same as -s except that first parameter specifies the target namespace of the schema. This target namespace is mandatory if the schema is to be deserialized.

-r dir

Load serialized schemas from directory dir if found there, otherwise load schemas from their XML sources.

-w dir

Serialize loaded schemas to directory dir.

-gendoc dir

Generate documentation in directory dir.

See note about the generated documentation.

-css URL

Add link to specified CSS URL in generated documentation.

-v

Be verbose. Default: be quiet.

It is possible to specify several -s and -ss options. Such multiple schemas (and their included/imported schemas, if any) are merged into one big global schema.

This command is XML catalog aware. This command will use the XML catalogs specified in environment variable XML_CATALOG_FILES. This variable must contain one or several XML catalog file names or URLs separated by a semi-colon (';').

XML catalogs may be used to resolve URLs found in the following places:

Limitations:

Examples:

3.1. About the generated documentation

The generated HTML reference manual, organized like "DocBook: The Definitive Guide" by Norman Walsh and al., lists all elements and attributes specified in the W3C XML schema or DTD.

This manual is intended to help content authors create instances conforming to a given XML schema or DTD. This manual is not intended to help XML schema or DTD authors document their design.

Note that, for now, the documentation generator cannot extract documentation contained in a schema (i.e. in annotation/documentation elements) and merge extracted documentation with automatically generated documentation.