RS

Hi:

I'm trying to read large XML documents using the Context.getXMLParser() from where I expect to retrieve a JDOM parser for navegating through the XML tree. Unfortunately, I get a "Java heap space" error which finishes, abruptly, the execution of the script, probably due to the size of those documents.

Known some disadvantages of using DOM-like APIs for reading XML documents (like a proved high memory consumption), I'm figuring how to achieve my goal with other alternatives, like using a (Java) SAX-compliant XML Parser... 

Did anyone do this before? Any suggestions?

All the help you can provide me will be highly appreciated.

Best regards,

Ricardo

 

Tags: Import