Actually the elements in the DTD do not have a tree structure, as one element can be part of the model for several other elements.
I haven't done this for XML DTDs, but for SGML ones I used dtdtree, from Earl Hood's old perlsgml tools. IIRC it processes the output of nsgmls, included in many Linux distributions, or found on James Clark website (you should go to that site anyway for instructions on how to get nsgmls to parse XML).
perlsgml is pretty nice, and can completely document your DTD. You can see an example tree.
In reply to Re: XML DTD Tree Structure
by mirod
in thread XML DTD Tree Structure
by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |