Introduction to DOM Parsers |
|
You can use a DOM parser to process XML documents at runtime. A DOM parser reads an entire XML document and creates a hierarchical tree-based structure called a DOM tree. The DOM tree contains objects that represent the content of XML documents, such as elements, attributes, or comments. For example, the graphic shows the DOM tree after parsing the following XML document: <Department> getDocumentElement() |
![]() |
Click the Next button to continue. |