Hi,
I would like to parse/process a DTD in order to
extract, for each element, a list of available/valid child elements and
attributes.
I've been looking through the MSXML4.0 reference
and can't see anything that looks like it would help. I've also spent several
hours searching the web looking for example code and tools, but no
joy.
The DTD in question (at the moment anyway) is
DocBook, but I want something generic. DocBook seems to use quite a few seperate
files for the DTD, so I'd need to be able to handle this.
Any suggestions for code or tools, or pointers in
the right direction or even alternative methods would be greatly
appreciated.
Thanks in advance.
Terry Chilvers
|