2009-10-12

Difference between SAX and DOM

SAX: Was developed to run the java programs especially.
DOM: Was developed by w3c consortium so that it is an open standard.

SAX: It uses a memory resident model.
DOM: The xml file is arranged as a tree.

SAX: Top to bottom traversing
DOM: Traverse in any direction.


SAX: We cant insert or delete a node
DOM: We can insert or delete nodes


SAX: Doesnt store the XML in memory.
DOM: Occupies more memory

reference:
http://www.geekinterview.com/question_details/12797
SAX examples

No comments:

Post a Comment