What is the difference between SAX and DOM?
问题 I read some articles about the XML parsers and came across SAX and DOM . SAX is event-based and DOM is tree model -- I don't understand the differences between these concepts. From what I have understood, event-based means some kind of event happens to the node. Like when one clicks a particular node it will give all the sub nodes rather than loading all the nodes at the same time. But in the case of DOM parsing it will load all the nodes and make the tree model. Is my understanding correct?