[jdom-interest] java.lang.OutOfMemory with an 10 MB xml file??

Paul Libbrecht paul at activemath.org
Mon Aug 8 03:57:36 PDT 2005


I'm confused by your answer... doesn't STaX and XPP both avoid building 
an in-memory tree ?
(as SAX does) but still allow XPath eval.



Le 4 août 05, à 12:02, Michael Kay a écrit :

>> - use STaX or XPP which are, both, supposed to be the ones with least
>> memory impact. I think some support XPath.
> This slightly misses the point. Building the tree in the first place 
> is much
> more expensive than scanning it (once) using XPath. If you only need 
> to scan
> the document once then there are a number of approaches you can use to 
> avoid
> building the tree, for example SAX, StAX, and at a higher level, STX.
> (Confusingly similar names!)

More information about the jdom-interest mailing list