Friday, June 19, 2009

Exercise 11.3: XML introduction

Question 3.
What are DOMs and why were they developed?

DOM stands for Document Object Model and is a World Wide Web Consortium standard. It defines a standard for accessing documents like XML and HTML. The DOM defines the objects and properties of all document elements, and the methods to access them.

The XML DOM views an XML document as a tree-structure. All nodes can be accessed through the tree. Their contents can be modified or deleted, and new elements can be created. The node tree shows the set of nodes, and the connections between them. The tree starts at the root node and branches out to the text nodes at the lowest level of the tree as in the picture below:

DOM's were developed to allow programming languages access to the underlying structure of a document. Using the DOM a program can access any element in the document and remove, add or rearrange it's elements or change it's attributes.

References
XML DOM Introduction (n.d). Retrieved June 20,2009, from http://www.w3schools.com/dom/dom_intro.asp

No comments:

Post a Comment