- XML DOM Basics
- XML DOM - Home
- XML DOM - Overview
- XML DOM - Model
- XML DOM - Nodes
- XML DOM - Node Tree
- XML DOM - Methods
- XML DOM - Loading
- XML DOM - Traversing
- XML DOM - Navigation
- XML DOM - Accessing
- XML DOM Operations
- XML DOM - Get Node
- XML DOM - Set Node
- XML DOM - Create Node
- XML DOM - Add Node
- XML DOM - Replace Node
- XML DOM - Remove Node
- XML DOM - Clone Node
- XML DOM Objects
- DOM - Node Object
- DOM - NodeList Object
- DOM - NamedNodeMap Object
- DOM - DOMImplementation
- DOM - DocumentType Object
- DOM - ProcessingInstruction
- DOM - Entity Object
- DOM - EntityReference Object
- DOM - Notation Object
- DOM - Element Object
- DOM - Attribute Object
- DOM - CDATASection Object
- DOM - Comment Object
- DOM - XMLHttpRequest Object
- DOM - DOMException Object
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 −
|S.No.||Interface & Description|
It provides a number of methods for performing operations that are independent of any particular instance of the document object model.
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.
It represents the XML document's top-level node, which provides access to all the nodes in the document, including the root element.
It represents XML node.
It represents a read-only list of Node objects.
It represents collections of nodes that can be accessed by name.
It extends Node with a set of attributes and methods for accessing character data in the DOM.
It represents an attribute in an Element object.
It represents the element node. Derives from Node.
It represents the text node. Derives from CharacterData.
It represents the comment node. Derives from CharacterData.
It represents a "processing instruction". It is used in XML as a way to keep processor-specific information in the text of the document.
It represents the CDATA Section. Derives from Text.
It represents an entity. Derives from Node.
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.
Kickstart Your Career
Get certified by completing the courseGet Started