[jdom-interest] Large XML file
Alex Rosen
arosen at novell.com
Tue Oct 28 13:43:45 PST 2003
Here are all the ways I know of to handle large XML document without
running out of memory:
Use ElementScanner with JDOM:
<http://www.servlets.com/archive/servlet/ReadMsg?msgId=225506&listName=jdom-interest>
<http://cvs.jdom.org/cgi-bin/viewcvs.cgi/jdom-contrib/src/java/org/jdom/contrib/input/scanner/>
Use ElementHandler with dom4j:
<http://www.dom4j.org/faq.html#How%20does%20dom4j%20handle%20very%20large%20XML%20documents?>
Use an XML pull processor:
<http://www.extreme.indiana.edu/xgws/xsoap/xpp/>
<http://www.xmlpull.org/>
Use SAX:
<http://www.saxproject.org/>
Alex
>>> "Goswami, Raj" <Purnendu_Goswami at csx.com> 10/28/2003 2:59:01 PM
>>>
Hi everyone,
Is there a way to efficiently handle very large XML files in JDOM?
And
also, would 5 Mb file be considered a large XML file, if the system
memory
is 256 Mb. We might need to process multiple files concurrently, so
what
should be a guiding rule for doing that. We have XML files, that need
to be
reformatted to another XML structure. If we use XSLT, am I correct to
assume that the whole XML document would be in memory? What would be
best
way then to transform one large XML structure to another XML
structure.
Your help is appreciated.
Thanks,
Raj
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list