dtdtree

#

dtdtree

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

## Description

`dtdtree` is just a front end to dtd.pl. See DTDprint_tree for 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.

## 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.