The XML DOM defines standards for accessing and manipulating XML. According to the DOM, everything in an XML document is a node. The text in the element node is stored in a text node. XML DOM treats XML documents as a tree structure. The tree structure is called a node tree. In a node tree, parent, child, and sibling are used to describe relationships.