XML DOM - Methods
XML DOM - Methods
DOM as an API contains interfaces that represent different types of information that can be
found in an XML document, such as elements and text. These interfaces include the methods
and properties necessary to work with these objects. Properties define the characteristic of the
node whereas methods give the way to manipulate the nodes.
Following table lists the DOM classes and interfaces −
https://www.tutorialspoint.com/dom/xml_dom_methods.htm 1/3
23/10/2021 16:33 XML DOM - Methods
DOMImplementation
1 It provides a number of methods for performing operations that are independent of
any particular instance of the document object model.
DocumentFragment
2 It is the "lightweight" or "minimal" document object, and it (as the superclass of
Document) anchors the XML/HTML tree in a full-fledged document.
Document
3 It represents the XML document's top-level node, which provides access to all the
nodes in the document, including the root element.
Node
4
It represents XML node.
NodeList
5
It represents a read-only list of Node objects.
NamedNodeMap
6
It represents collections of nodes that can be accessed by name.
Data
7 It extends Node with a set of attributes and methods for accessing character data in
the DOM.
Attribute
8
It represents an attribute in an Element object.
Element
9
It represents the element node. Derives from Node.
Text
10
It represents the text node. Derives from CharacterData.
11 Comment
https://www.tutorialspoint.com/dom/xml_dom_methods.htm 2/3
23/10/2021 16:33 XML DOM - Methods
ProcessingInstruction
12 It represents a "processing instruction". It is used in XML as a way to keep processor-
specific information in the text of the document.
CDATA Section
13
It represents the CDATA Section. Derives from Text.
Entity
14
It represents an entity. Derives from Node.
EntityReference
15
This represent an entity reference in the tree. Derives from Node.
We will be discussing methods and properties of each of the above Interfaces in their
respective chapters.
https://www.tutorialspoint.com/dom/xml_dom_methods.htm 3/3