[jdom-interest] Re: Using JDOM and LARGE XML Files ...
Joseph Bowbeer
jozart at csi.com
Thu Jan 11 01:31:18 PST 2001
If you want to eliminate or prune elements prior to processing, you can
write your own XMLFilter (SAX2) and assign it to your SAXBuilder before
you build your Document.
XMLFilter filter = new MyFilter();
builder.setXMLFilter(filter);
Document doc = builder.build(in);
Check out the samples in jdom/samples/sax.
Writing an XMLFilter is a little easier than writing your own SAX
handler, and you'll be able to use the standard JDOM API.
Jon Baer <jonbaer at digitalanywhere.com> wrote:
> I am in the middle of working some that requires building an XML
object
> stack and parsing and I would like to use JDOM if it makes sense. The
> XML files are pretty large (about 400k at most) and I was originally
> going to try and create a dumb SAX handler instead but Id like to use
> JDOM instead because Id like to query it.
More information about the jdom-interest
mailing list