Table of Content

  • What are the Different Types of DOM ?

What are the Different Types of DOM ?



The W3C DOM standard is separated into 3 different parts:

  • Core DOM
  • XML DOM
  • HTML DOM
No DOM Type Purpose/Use of DOM
1. Core DOM Standard Model for Accessing any Structured Document.
2. HTML DOM Standard Model for Accessing HTML Document.
3. XML DOM Standard Model for Accessing XML Document.

What is HTML DOM ?

The HTML DOM is :

  1. A standard object model for HTML
  2. A standard programming interface for HTML
  3. A W3C standard

The HTML DOM defines the objects and properties of all HTML elements, and the methods to access them.

What is XML DOM ?

The DOM is used by a higher-level application.
[one_third last=”no”][/one_third] In order to write an application that will be accessing an XML document through the DOM, you need to have an XML parser and a DOM implementation installed on your machine.

XML DOM is used to access the XML document. The XML DOM defines the objects and properties of all XML elements, and the methods to access them.