[jdom-interest] On-Line and Off-Line DTD

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Sep 4 04:44:46 PDT 2001

philip.nelson at omniresources.com wrote:

> No doubt some people will want something else there but this is what we
> agreed to so this is what I have implemented.
> I have not followed through to DOMBuilder, DOMOutputter or SAXOutputter.
> This will have to be a more interesting exercise for somebody else.
> Volunteers?

I had a look at a possible implementation for SAXOutputter. Firing DTD events 
seems quite easy: Just create a SAX parser instance, parse the DTD string and 
here are the events! You just have to stop the parsing once the DTD parsing is 
The problem is "create a SAX parser instance": The code to do that is hidden 
in SAXBuilder.

  Would it make sense to extract this code in a separated class (e.g. 
org.jdom.util.Parsing)? With the JSR, will JDOM continue to support non-JAXP 
Last solution: Add a nested sub-class of SAXBuilder to SAXOutputter to reuse 
the parser creation code?

Jason, which direction do you think we should go?


More information about the jdom-interest mailing list