dtdtree

dtdtree outputs the content hierarchy tree (in ASCII) of SGML elements defined in a DTD.


Description

dtdtree is just a user front end to dtd.pl's DTDprint_tree routine. See DTDprint_tree for the description of the output generated by dtdtree.


Usage

dtdtree is invoked from the Unix shell as follows:

% dtdtree [options] elementname elementname ...

Any strings that are not part of the command-line options are treated as the elements (elementname) to output trees for. If no elements are specified, than the tree(s) for the top-most element(s) defined in the DTDare printed.

The following are the list of options available:

-dtd filename
Use filename as the SGML DTD to parse. Otherwise, read from STDIN.
-help
Print a brief usage description. No other action is performed.
-level #
Set the prune level of the content hierachy tree to #. Defaults to 15.
-mapfile filename
Use filename as the entity map file. Defaults to "map.txt". See DTDread_mapfile of dtd.pl for more information about the entity map file.
-treefile filename
Output element content tree(s) to filename. Otherwise, dtdtree prints to STDOUT.
-verbose
Ouput to STDERR messages of what dtdtree is doing. This option is mainly for debugging purposes.

See Also

dtd2html
Generate HTML documents that allows navigation through the stucture of an SGML DTD.
dtd.pl
A Perl library to parse SGML DTDs.

Earl Hood, ehood@convex.com
dtdtree 1.1.0