[jdom-interest] 2 errors (?)

Joseph Bowbeer jozart at csi.com
Sun Apr 8 13:30:31 PDT 2001

PS - One way to observe the progress of the SAXHandler when you don't have a
debugger handy and you don't want to insert your own println statements is
to attach an XMLWriter to the SAXBuilder.  This will echo the XML as it is
processed -- to System.out by default.  You can also create a custom
XMLFilter just for tracing...

    SAXBuilder builder = new SAXBuilder();
    builder.setXMLFilter( new XMLWriter() );
    Document doc = builder.build(in);

See http://cvs.jdom.org/cgi-bin/viewcvs.cgi/jdom/samples/sax/

----- original message -----
From: Jason Hunter jhunter at collab.net
Date: Sat, 07 Apr 2001 18:03:39 -0700

Stefan ALBOI sbll at ss.pub.ro wrote:
> I encountered 2 errors which I would like to report:
> 1.
> Doc: XML document with 2 or more levels of general entities
> Parser: Xerces 1.3.1 (& 1.2.3)
> Method: build JDOM document using SAX
> Error: org.jdom.JDOMException: Error in building: org.jdom.Entity

I suspect an error in SAXHandler, but unfortunately the stack trace
doesn't say where in SAXHandler the error is really happening.  It'll
take some investigating.  If it's important to you, add some println()'s
in SAXHandler to figure out what's happening.  I'll get to it but this
isn't at the top of my list.

More information about the jdom-interest mailing list