[jdom-interest] Bug: SAXBuilder locks last parsed document in memory

Elliotte Harold elharo at metalab.unc.edu
Wed Nov 23 09:12:05 PST 2005

Laurent Bihanic wrote:

> Attached is a patch proposal to add a method clear() to SAXHandler to 
> reset all references it holds after the parse is complete.
> Note: SAXBuilder can't reset the parser's ContentHandler, as setting the 
> ContentHandler to null is not allowed by SAX.

Even if you can't set it to null, but you could set it to a different 
ContentHandler that doesn't have a reference to anything. DefaultHandler 
would work nicely for this.

Elliotte Rusty Harold  elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!

More information about the jdom-interest mailing list