[jdom-interest] JDom memory requirement
Laurent Bihanic
laurent.bihanic at atosorigin.com
Mon Nov 12 00:52:54 PST 2001
Hi, Richard,
Richard Han wrote:
> We are working data import for Scarab open source project, we would
> like to ask a question: does JDom require every elements in memory?
No, JDOM does not require it. But the existing builders (such as SAXBuilder)
load the whole XML document in memory and do not give you the possibility to
only process portions of it.
But JDOM allows you to create your own builders. As our project needs to
process megabyte-large XML files, I wrote a builder that takes XPath
expressions and only creates the elements matching those expressions.
I'm working with Jason to make it available in the jdom-contrib module.
In the mean time, if you are interested in getting it, just drop me a mail.
Laurent
More information about the jdom-interest
mailing list