4. Dtdvalid command reference

dtdvalid ?options? ?xml_doc ... xml_doc?

Checks a DTD for validity. Checks one or more XML documents for validity against a DTD.

Options:

-o file

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

-d dtd

Use DTD dtd to validate XML documents. Default: use DTD specified in the XML document.

-dd pubid dtd

Same as -d except that first parameter specifies the public ID of the DTD. This public ID is mandatory if the DTD is to be serialized or deserialized.

-r dir

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

-w dir

Serialize loaded DTDs 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.

When the -d or -dd command-line options are used, the constraint that the root element of an XML instance and the document element of the DTD must match is not checked.

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 (';').

Notes:

Examples: