我在具有以下要求的应用程序的工作处理XML文件 -与庞大的数据
- 从服务器下载一个ZIP文件。
- 解压缩ZIP文件,从该文件获取内容(XML格式)为字符串。
- 将此内容传递给另一个解析和进一步处理的方法。
现在,我的关注点是XML文件的大小可以说是'100MB',而我的JVM只有512 MB的内存,所以我怎样才能将这些内容加入到块中并传递给Parsing和然后将数据插入到PL/SQL表中。
由于可以同时运行多个请求并考虑512MB内存,因此最好能够处理该请求。
如何将数据获取到Chunks中并将其作为Stream传递给XML解析。
dupe of http://stackoverflow.com/questions/504689/big-xml-file-and-outofmemoryerror http://stackoverflow.com/questions/1913551/huge-xml-file-do-i-read-一个页面和每个进程处理它http://stackoverflow.com/questions/23106/best-method-to-parse-various-custom-xml-documents-in-java http:// stackoverflow。 com/search?q = huge + xml + java – voyager 2010-03-19 21:30:01
另请参阅:http://stackoverflow.com/questions/1134189/can-jaxb-parse-large-xml-files-in-chunks – Ash 2010-03-19 21:31:40
另请参阅http:// stackoverflow .com/questions/2013996/large-xml-files-and-pagination-is-it-possible – 2010-03-19 22:47:24