Skip to main content

XML DOM Methods

XML DOM 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 needed to work with these objects.

Properties define node characteristics, while methods provide ways to manipulate nodes.

The following table lists the DOM classes and interfaces:

InterfaceDescription
DOMImplementationIt provides a number of methods for performing operations that are independent of any particular instance of the document object model.
DocumentFragmentIt is the "lightweight" or "minimal" document object, and it (as the superclass of Document) anchors the XML/HTML tree in a full-fledged document.
DocumentIt represents the XML document's top-level node, which provides access to all the nodes in the document, including the root element.
NodeIt represents XML node.
NodeListIt represents a read-only list of Node objects.
NamedNodeMapIt represents collections of nodes that can be accessed by name.
DataIt extends Node with a set of attributes and methods for accessing character data in the DOM.
AttributeIt represents an attribute in an Element object.
ElementIt represents the element node. Derives from Node.
TextIt represents the text node. Derives from CharacterData.
CommentIt represents the comment node. Derives from CharacterData.
ProcessingInstructionIt represents a "processing instruction". It is used in XML as a way to keep processor-specific information in the text of the document.
CDATA SectionIt represents the CDATA Section. Derives from Text.
EntityIt represents an entity. Derives from Node.
EntityReferenceThis represent an entity reference in the tree. Derives from Node.