XML : eXtensible Markup Language :: Introduction to DOM
- What is DOM?
- Tree Structure of an XML Document
- XMLDOM Document Object
- XMLDOM Node Object
- Finally About DOM
What is DOM? |
The Document Object Model (DOM):
- Is a programming interface for XML documents.
- Defines how XML documents can be programmatically accessed and manipulated.
- Is a platform- and language-neutral interface.
- Represents an XML document as a tree structure.
- Provides access to XML document structure through a set of objects.
- Defines an API for accessing and manipulating XML documents.
Writing an application that accesses an XML document through DOM requires:
- An XML Parser
- DOM
Using DOM to create and manipulate XML documents helps avoid:
- Unclosed tags
- Improperly nested tags
DOM helps easily move information between a database and an XML file.
Tree Structure of an XML Document |
XMLDOM Document Object |
Methods and Properties from Document Object
XMLDOM Node Object |
Methods and Properties from Node Object
Finally About DOM |
Finally About DOM
- DOM is a platform- and language-neutral programming interface for XML documents.
- DOM defines how XML documents can be manipulated and accessed.
-
To access XML documents through DOM the following two components are required:
- XML Parser
- DOM implementation
- The node tree created by the DOM is a logical representation of the content found in the XML file.
Recent Comments