XML DOM Model
A DOM document is a collection of nodes or pieces of information, organized in a hierarchy.
XML DOM Structure
Everything in an XML document is a node and even the document itself is a node.
Some types of nodes can have children nodes of various types, and others are leaf nodes that cannot have anything under them in the document structure.
The following table shows the various types of nodes and for each the possible child nodes:
<?xml version = "1.0"?>
Learn more about Nodes in XML DOM Nodes chapter.