Processing XML file with Huge data
- by Manish Dhanotiya
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,