XML DOM Introduction
XML DOM defines the standard for accessing and processing XML documents.
Prerequisites
Before continuing, you should have a basic understanding of the following:
- HTML
- XML
- JavaScript
If you want to learn these topics first, please visit ourHometo access these tutorials.
What is the DOM?
DOM is a W3C (World Wide Web Consortium) standard.
DOM defines the standard for accessing documents such as XML and HTML:
"The W3C Document Object Model (DOM) is a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of documents."
DOM is divided into 3 different parts/levels:
- Core DOM - The standard model for any structured document
- XML DOM - The standard model for XML documents
- HTML DOM - The standard model for HTML documents
DOM defines theobjects and propertiesand the means to access themMethod(interfaces).
What is the HTML DOM?
The HTML DOM defines all HTML elements'objects and propertiesand the means to access themMethod(interfaces).
If you want to learn HTML DOM, please visit ourHometo visit the HTML DOM tutorial.
What is the XML DOM?
XML DOM is:
- A standard object model for XML
- A standard programming interface for XML
- Platform- and language-neutral
- a W3C standard
The XML DOM defines all XML elements'objects and propertiesand the means to access themMethod(interfaces).
In other words:XML DOM is the standard for getting, changing, adding, or removing XML elements.