What is the DOM?
The DOM stands for the Document Object Model. It defines a programmatic API for accessing XML documents. The XML document is represented as a tree. Using the DOM API, a programmer can construct, query, traverse and manipulate XML documents programmatically.
XML parsers consume XML documents and then typically produce trees that can be accessed using the DOM API.