Hi,
I need to know all element and attribute declarations in a DTD. It must
work with -- what are they called, genral entity references, too; that
is, if the DTD is partitioned into several files, I want all
declarations in all of them.
Does anyone know a clever way of extracting DTD information from the
standard JAXP / SAX XML parsers that come with Java? I can't quite find
any handler interfaces that have to do with declarations, but again I
just need to extract the declarations in a way where I can fish out
content models, etc.
In case not, all right; I need to use someone else's code libraries
then. I know com.wutka's DTD parser. That's the one I want to replace. I
have taken a look at Woodstox (http://woodstox.codehaus.org/), which can
apparently do all I want, but is a slight overkill: I'd rather not have
one more complete XML processor, but just use what I alrady have.
Thanks for any feedback.
Soren