memory problems reading large XML files
in
Programming Questions
•
3 years ago
I'm having trouble reading medium to large XML files using processing's built-in xml library. When I edit out part of the XML to make it a smaller file size I can get it to load into memory, but the original XML causes a "NullPointerException".
For example, a 230KB xml file would not load, but it will load when I cut it down to 172KB. I'd like to be able to load files up to 10,000KB.
Are there any easy ways to sequentially load and work on just a small portion of the XML file to prevent memory problems? I've tried increasing the maximum available memory preference in Processing but that didn't solve my problem.
Is there an easy way to do this using proXML? I'm just learning Processing so the solution needs to be simple
.
Thanks in advance for any advice!
-Bob
1