title: What is the difference between SAX and DOM?
body: <p>I read some articles about the <strong>XML</strong> parsers and came across <strong>SAX</strong> and <strong>DOM</strong>.</p>
  
  <p><strong>SAX</strong> is event-based and <strong>DOM</strong> is tree model -- I don't understand the differences between these concepts. </p>
  
  <p>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 <strong>DOM</strong> parsing it will load all the nodes and make the tree model. </p>
  
  <p>Is my understanding correct? </p>
  
  <p>Please correct me If I am wrong or explain to me event-based and tree model in a simpler manner. </p>