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

SAX examples

No comments:

Post a Comment