XML DOM Interfaces



XML DOM Interfaces

  • The DOM defines several interfaces:
    • Node - The base data type of the DOM.
    • Element - Represents element of the xml document.
    • Attribute - Represents an attribute of an element.
    • Text - The content of an element or attribute.
    • Document - Represents the entire XML document. A Document object is often referred to as a DOM tree.

Example for XML DOM Interfaces

 XML DOM Interfaces

Learn XML - XML tutorial - XML DOM Interfaces - XML examples - XML programs

Properties of DOM

  • Programmers can build documents, navigate their structure, and add, modify, or delete elements and content.
  • Provides a standard programming interface that can be used in a wide variety of environments and applications.
  • DOM structure models isĀ structural isomorphism because every document contains two DOM

DOM Levels

DOM Level 1

  • The basic functionality for document navigation and manipulation.

DOM Level 2

  • It includes a style sheet object model.
  • It defines an event model and provides support for XML namespaces and enhances tree manipulations.

DOM Level 3

  • This level still under development.
  • Addresses document loading and saving as well as content model ( DTDs and schemas ) with document validation support.


Related Searches to XML DOM Interfaces