I have some very large XML files, up to 10mB each, that I need to read into Matlab structures. I have tried the native xmlread and several other XML readers / parsers posted on Matlab Central's File Exchange. They all work OK but have yet to find a function that can do it without taking minutes per file. Anyone run across a fast(er) XML reader function?
On Oct 18, 1:16 pm, "Scott " <co...@ge.com> wrote:
> I have some large XML files which are 15MB or more... in this case I get an error:
> java.lang.OutOfMemoryError: Java heap space
> So I am also in need of a better XML reader/parser. Particularly one that is more memory efficient. Is there something in the java libraries that I can use?
You don't say what platform you are on (I've only tried the following
under Linux). The MATLAB program looks for a java.opts in your startup
directory. You can put the -Xms and -Xmx options like below which set
the minimum java heap size and the maximum (values are in bytes).
Every time more java heap space is required, I believe it tries to
double the current size. You can check some of these values from
within MATLAB using: