DTDPARSE(1p) | User Contributed Perl Documentation | DTDPARSE(1p) |
dtdparse - Generate an XML representation of an SGML or XML DTD.
dtdparse [options] [dtdfile]
dtdparse parses an XML or SGML DTD and prints an XML representation of it. The XML version can be further processed by other tools to aid in the analysis and documentation of the DTD.
The first non-option-related argument provided on the command-line specifies the file to parse. If no filename is given, then the DTD is read from standard input.
The generated XML document is printed to standard output unless the "--output" option is specified.
NOTE: Currently, only SGML Open Catalog format is supported. XML Catalog support is not implemented (yet).
Debugging output is sent to standard error.
If no SGML declaration is available, the "--xml", "--namecase-general", and "--namecase-entity" options can be used.
It is common for DTD authors and maintainers to use parameter entities within content models. When this option is enabled, dtdparse will include a version of content models with parameter entities not expanded.
If "--debug" is specified, then this option is automatically enabled.
dtdformat, dtddiff, dtdflatten
See SGML::DTDParse for an overview of the DTDParse package.
Getopt::Long, Text::DelimMatch
<http://dtdparse.sourceforge.net/>
Originally developed by Norman Walsh, <ndw@nwalsh.com>.
Earl Hood <earl@earlhood.com> picked up support and maintenance.
See SGML::DTDParse for copyright and license information.
2022-01-21 | perl v5.32.1 |