[jdom-interest] Manipulating a very large XML file

Jim McMaster jim.mcmaster at comcast.net
Fri Jan 21 05:46:47 PST 2005


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, January 20, 2005 7:23 PM, jdom-interest-bounces at jdom.org
<> wrote:

> How about using SAX?  You don't load the entire document, you
> just handle
> events as a node is visited, and if you are interested in
> that node you can
> save it in memory.  I've never actually done that, but that
> is the other way
> of doing things and the reason to do it that way is for your
> reasons.  
> 

If you decide to use a streaming parser, check out StAX, which is a
pull parser rather than a push parser like SAX.  It is much easier to
use.
- -- 
Jim McMaster
mailto:jim.mcmaster at comcast.net


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQfBNrWaP5l7/atSJEQJAdwCgxOFS+cDdeVOgNTmaMzGNff3x0+oAnRwp
Vox5kcazmdgD1TH4c1XX7uwU
=iVvB
-----END PGP SIGNATURE-----




More information about the jdom-interest mailing list