We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Problem reading large XML files
Page Index Toggle Pages: 1
Problem reading large XML files (Read 958 times)
Problem reading large XML files
May 20th, 2010, 9:44pm
 
Hello,

I am just getting started with Processing, and trying to read data from some large XML files using XMLElement.  The program seems to lock up when I try to create a new instance of XMLElement from a large file (smaller files work ok).  I assume this has something to do with XMLElement loading in the whole file at once instead of just doing the reads as I navigate through the file.

Has anyone run into something like this, and if so, did you find a good solution?  This might just be something I am overlooking in the documentation - any pointers to the right info are appreciated.

Thanks,
-Builderben
Re: Problem reading large XML files
Reply #1 - May 22nd, 2010, 1:04am
 
How large is your XML file?
Do you have error messages?
Have you tried to increase the memory allocation of Processing (in its settings)?
If you want to avoid reading the whole file at once, you can try Java's in-build XML classes, although their use is harder than with XMLElement...
I planned to do a tutorial on the topic someday, never found the time...
Page Index Toggle Pages: 1