The DOM (Document Object Model) is a W3C standard that defines a programming interface for XML and HTML documents. The DOM represents an XML document as nodes and objects that can be manipulated programmatically. The DOM defines the logical structure of documents and the way a document is accessed and manipulated. Key points:
- The DOM allows manipulation of the contents of an XML document through a programming interface.
- The DOM represents an XML document as a tree structure, with nodes and objects that can be accessed and manipulated.
- Common DOM node types include elements, attributes, text nodes, comments and documents. The DOM defines interfaces and properties to represent the node relationships and access node contents.