468,167 Members | 1,965 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

Parse a DTD from JAXP (or some other Java)

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
Apr 21 '06 #1
0 950

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Moss | last post: by
6 posts views Thread by Rhino | last post: by
458 posts views Thread by wellstone9912 | last post: by
3 posts views Thread by stéphane bard | last post: by
66 posts views Thread by flarosa | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.