We're using the DOM parser on some rather large files, seeing the memory footprint of our application get quite large - I've seen mention of "deferred node parsing" with the DOM parser, but haven't been able to find any methods to set this option - is this something that's available to xerces-c DOM parser?

We're starting off with a file that's 50MB in size, and it's only going to get bigger from there. Currently it's taking up approx 500MB because it's XML wrapping escaped XML, once we get the contents of the wrapped XML, the memory goes down to the 250MB range, which is still a lot considering that the size of the file will grow in length by at least 20x. Before I delve into the SAX parser, are there any other tricks to using DOM while minimizing the memory footprint?

thanks,
-lev

Reply via email to