[jdom-interest] Memory problems
Bradley S. Huffman
hip at cs.okstate.edu
Mon Dec 29 15:16:13 PST 2003
"Pramodh Peddi" writes:
> I am using JDOM for XML processing. I use SAXBuilder. I am having memory =
> problems when it deals with huge documents (like 10MB), even though it =
> is using SAXBuidler. It throws OutOfMemoryError when I try to build a =
> 8MB document.
> I assume it does not keep the whole tree in memory if I use SAXBuilder. =
> Does it?
Yes, SAXBuilder takes SAX events from the SAX parser and builds a JDOM tree
to represent the *whole* document. If you only need parts of the document
take a look at ElementScanner in jdom-contrib.
Brad
More information about the jdom-interest
mailing list