The XML DOM (document object model) is used the access and management of xml. It is a platform that is language neutral and allows a program or a script to dynamically access a document. It also allows the updation of content as well as the structure and style of the document. It is responsible for the defining of the object and properties of all xml elements as well as to define the methods for their access. There are various methods that can be used in xml dom such as:
- getElementsByTagName: used to call a specific user defined tag.
- setAttribute: used to change the value of an existing attribute.
- appendChild: used to add a child node to another node.