The XML DOM defines a standard way for accessing and manipulating XML documents.
The XML DOM views an XML document as a tree-structure.
All elements can be accessed through the DOM tree. Their content(textand attributes) can be modified or deleted, and new elements can be created.
The elements, their text, and their attributes are all known as nodes.