GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Oracle  >  Java

 Print  |  
Question:  Difference between SAX and DOM?




June 06, 2005 01:37:54 #1
 pravash   Member Since: Visitor    Total Comments: N/A 

RE: Difference between SAX and DOM?

 
SAX uses an event callback mechanism requiring you to code methods to handle events thrown by the parser as it encounters different entities within the XML document. 
DOM parses an XML document and returns an instance of org.w3c.dom.Document. This document object's tree must then be "walked" in order to process the different elements. 
 
     

 

Back To Question