So far this is what I understand:
The DOM is a diagrammatic representation of all the elements on a webpage which are called objects. These objects/elements are displayed and constructed as a tree or map.
There is also another aspect of a DOM. Besides being a tree of elements/virtual objects, it is also a platform and neutral software based interface i.e. an API that allows programs and scripts to dynamically access and update the content, structure and style of a webpage. In other words, it allows for the manipulation of a webpage since it defines how to read, change, add and delete elements which is similar to CRUD functions of a database.
The W3C DOM standard is separated into 3 different parts
- Core DOM (An interface used to manipulate XML and HTML pages)
- XML DOM (An interface used to manipulate XML pages)
- HTML DOM (An interface used to manipulate HTML pages)
So from the research I did and and from putting all of the above three points together, what I have gotten so far is that the HTML DOM is accessed via JavaScript and from JavaScript you can manipulate the information on the webpage, for example changing elements and so on. But my question is, how do you manipulate page content via the XML DOM if XML itself does not support JavaScript natively?
I was able to find the following three post on the site, but they do not answer my question as it pertains to the manipulation of page content XML DOMs specifically:
*What is the difference between XML DOM and HTML DOM