Parsing XML Documents To manipulate an XML document, XML parser
is needed. The parser loads the document into the computer's
memory. Once the document is loaded, its data can be manipulated
using the appropriate parser. We will soon discuss APIs and
parsers for accessing XML documents using serially accesss mode
(SAX) and random access mode (DOM). The specifications to ensure
the validity of XML documents are DTDs and the Schemas. DOM:
Document Object Model The XML Document Object Model (XML DOM)
defines a standard way to access and manipulate XML documents
using any programming language (and a parser for that language).
The DOM presents an XML document as a tree-structure (a node
tree), with the elements, attributes, and text defined as nodes.
DOM provides access to the information stored in your XML
document as a hierarchical object model. The DOM converts an XML
document into a collection of objects in a object model in a
tree structure (which can be manipulated in any way ). The
textual information in XML