>DOM is a memory resident image of your entire XML file. So it's going
>to be at least as big, right?
Actually, that depends on the document and the DOM implementation; there
are some things that DOMs can do to reduce the space overhead (eg
maintaining a symbol table of element/attribute names and always referring
to a shared copy of that text rather than creating a new one each time)...
But assuming it takes about as much memory for the DOM as it did for the
text file is not bad as a rule of thumb.
You might want to check out http://www.w3.org/DOM/faq.html#SAXandDOM for
discussion of the tradeoffs between the DOM and SAX approaches. Incremental
DOMs can help, and adding application code to "prune away" portions of the
DOM which are no longer needed can also help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]