Hello, I'm a bit of a newbie to XML, and I was hoping someone could answer a question for me please. Is anyone aware of how much memory would be required to load say a 1MB XML file into the DOM? I'm sure it probably varies between parsers, but I would very much like to find out the memory overhead incurred in doing this. If anyone has any ideas I'd be very grateful!! Apologies if this has been asked before.. many thanks for all your help guys cheers
DOM parsing typically uses more memory than SAX parsing. This is because the parser creates a document representation in memory with all the nodes and cross references. I do not have any parser specific statistics, but you should always consider DOM as an expensive parsing mechanism. The bigger the document size is, the more will be memory consumption and time required to parse. Hope that helps.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop