DTDto
The dtdto utility parses an XML DTD and provides the
following output options:
- An XML representation of the DTD, providing a complete
representation of the parsed DTD, suitable for subsequent
processing by an XSLT script.
- Documentation for the DTD in either HTML or Docbook
format. Within the DTD, any comment directly followed by a line
break and an element declaration is considered to be applicable
to that element, and will be included as such in the
documentation. A similar convention is applied for entity
declarations, except that a comment directly following an entity
declaration, with no separating line break, is also considered
to be applicable to that entity.
- An XSLT script for validating an XML document with respect
to the DTD. Validation is performed by a Deterministic Finite
Automaton constructed from content model regular
expressions.
dtdto is distributed with the
XML::DTD Perl
module, available from CPAN.