Introduction to XML DOM
XML DOM defines the standard for accessing and processing XML documents.
Prerequisites
Before proceeding, you should have a basic understanding of the following:
- HTML
- XML
- JavaScript
If you need to learn these topics first, please visit our homepage for tutorials.
What is DOM?
DOM is a W3C (World Wide Web Consortium) standard.
DOM defines a standard for accessing documents like 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 a document."
DOM is divided into three different parts/levels:
- Core DOM - Standard model for any structured document
- XML DOM - Standard model for XML documents
- HTML DOM - Standard model for HTML documents
DOM defines objects and properties of all document elements, as well as methods (interfaces) to access them.
What is HTML DOM?
HTML DOM defines objects and properties of all HTML elements, as well as methods (interfaces) to access them.
To learn HTML DOM, please visit our homepage for HTML DOM tutorials.
What is XML DOM?
XML DOM is:
- A standard object model for XML
- A standard programming interface for XML
- Platform and language independent
- A W3C standard
XML DOM defines objects and properties of all XML elements, as well as methods (interfaces) to access them.
In other words: XML DOM is the standard for getting, changing, adding, or deleting XML elements.