How do you parse the DTD? If you happened to use XML::DTDParser you could stick the annotations into <!--#info element=XXX key="value" ...--> comments into the DTD. This allows you to attach any additional data to the hash created by DTD::Parser for each tag or attribute. So using this you can store the stuff withing the DTD, yet other DTD parsers and XML validators with gracefully ignore it.
In reply to Re: Annotating XML Metadata for display
by Jenda
in thread Annotating XML Metadata for display
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |