[jdom-interest] Converting stream of SAX events into a JDOM

PJ Fanning pj.fanning at XIAM.com
Mon Jun 25 06:51:27 PDT 2001


Hi everyone,
I'm new to JDOM. The project that I am working on is based around
manipulating streams of SAX events but I think that JDOM can add an useful
extra layer of functionality to this. One problem has arisen though. The
org.jdom.input.SAXBuilder class creates a JDOM document but it provides no
public interface by which SAX events can create a JDOM directly (it provides
a variety of public methods based on receiving an XML document). I could do
exactly what I'm looking for if the org.jdom.input.SAXHandler was made into
a public class. This would provide a very useful set of conversions:
 XML Document -> SAX -> JDOM -> DOM -> JDOM -> SAX etc.
I have made this change within my own version of jdom.jar, but I would like
to suggest that this might be a useful change to JDOM generally.

Regards,

PJ Fanning (pj.fanning at xiam.com)
Software Engineer
XIAM Limited - The Information Router Company
Alexandra House, Ballsbridge Park, Dublin 4, Ireland.



More information about the jdom-interest mailing list