in reply to XML to XML
However, if you need to analyze the whole tree before you decide how to simplify it, then you should use DOM.
The difference is that SAX parsers are event based and return items as they finds them, whereas DOM parsers read the entire document and then builds the tree. You then querry the tree.
Both of the links ( to SAX and DOM ) include links to documentation and sample code.
|
|---|