in reply to Annotating XML Metadata for display

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.

Replies are listed 'Best First'.
Re^2: Annotating XML Metadata for display
by throop (Chaplain) on Sep 10, 2007 at 17:41 UTC
    Jenda,

    Thanks, that sounds like the ticket.