Processing XML file with Huge data
Posted
by Manish Dhanotiya
on Stack Overflow
See other posts from Stack Overflow
or by Manish Dhanotiya
Published on 2010-03-19T21:08:03Z
Indexed on
2010/03/19
21:11 UTC
Read the original article
Hit count: 209
Hi,be m I am working on an application which has below requiements - 1. Download a ZIP file from a server. 2. Uncompress the ZIP file, get the content (which is in XML format) from this file into a String. 3. Pass this content into another method for parsing and further processing.
Now, my concerns here is the XML file may be of Huge size say like '100MB', and my JVM has memory of only 512 MB, so how can I get this content into Chunks and pass for Parsing and then insert the data into PL/SQL tables.
Since there can be multiple requests running at the same time and considering 512MB of memory what will be the best possible to process this. How I can get the data into Chunks and pass it as Stream for XML parsing.
I googled on this, but didnt find any implementation. :(
Thanks,
© Stack Overflow or respective owner