Answers

Question and Answer:

  Home  XML DOM

⟩ Explain the difference between DOM and SAX?

SAX parser works incrementally and generates events that are passed to the application. DOM parser reads the whole XML document and returns a DOM tree representation of xml document

In DOM the xml file is arranged as a tree and backward and forward search is possible In SAX traversing in any direction is not possible as Top to bottom approach is used.

SAX is essentially an API for reading XML, and not writing it. DOM allows you to read and write.

 188 views

More Questions for you: