XML DOM

The article was added by Gore Mitrovich at 03/07/2008.

Home | Submit article | About us | Contact us
Other XML articles

You are here: Categories » Technology and Computer » XML

XML DOM

The XML DOM is used to access and manipulate the XML document programmatically. The DOM is an in-memory, cached tree representation of an XML document that enables the navigation and modification of a document including adding, updating, or deleting the content of elements. The DOM represents data as a hierarchy of object nodes.

ads1
ads2

Consider a sample XML document:

<book>         
<name> Harry Potter </name>         
<language> English </language>  
</book>

According to the XML DOM, this document contains the following objects:

  • Document object. This includes the entire document.

  • The book object. This is a root node that has two child elements, name and language.

  • The name object. This is a text object and has a sibling object, language.

  • Gone with the Wind. This is a text object and a child of the name object.

  • The language object. This is an object that has a sibling object name and a child text object.

  • English. This is a child of the language object.

XML DOM Objects
Object Description
DOMDocument Represents the top node of the XML DOM tree
XMLDOMNode Represents a single node in the DOM tree
XMLDOMAttribute Represents an attribute object
XMLDOMCDATASection Marks the text such that the text is not interpreted as markup language
XMLDOMDocumentType Contains information associated with the document declaration
XMLDOMEntity Represents an entity in the XML document
XMLDOMProcessingInstruction Represents a processing instruction

ads3

XML Disclaimer

  • The Soft articles directory team is not responsible for falsehoods, inaccuracies, or any other types of misinformation this article may contain and will not be liable for any damage or loss suffered by a user through the user's reliance on the information gained here.
  • Soft Articles Directory is not responsible for any and all copyright infringements by writers and authors. If you suspect the information contained by this page for any copyright infringements, please contact us and we'll investigate the issue.

 
free content
    Copyright © 2007-2008 Soft Articles Directory. Designed by the Soft Article Directory Team.
The articles and tutorials in the directory are property of their respective owners and authors.