Noting the scarcity of DTD parsers for Java,
Mark Wutka has released a standalone version of the
DTD parser he has developed for
Jox.
This lightweight parser--which does not rely on any other package--reads and
parses a DTD file, storing the retrieved information in a
DTD object, which Wutka says "is similar to the Document object in the DOM model".
In his announcement, Wutka says he is open to suggestions:
Any suggestions are welcome, especially with regard to the data model. I was
just kinda winging it and I don't know if what I came up with is suitable
for everyone.
The DTD parser is available for
download
under the Lesser GPL (LGPL) license.