DOM:
The Document Object Model (DOM) defines a standard interface to access specific parts of the XML document, based on a tree-structured model of the data. Each node of the XML document is considered to be an object with methods that may be invoked to get/set its contents/structure, or to navigate through the tree.
The XML DOM is:
1. A standard object model for XML
2. A standard programming interface for XML
3. Platform-and language-independent
4. A W3C standard
In other words, the XML DOM is a standard for how to get, change, add, or delete XML elements.
Advantages of DOM Parser :
(i) DOM API is easy to use so that we can do both write and read operations. e
(ii) When a document is required then it preferred a wide part that can be randomly accessed.
Disadvantages of DOM Parser :
(i) Its efficiency of memory is not too good, it takes more memory cause XML docs needed to load in there.
(ii)
In comparison to the SAX parser, it is too slow.
No comments:
Post a Comment