DOMDocument (Class)

XML Document.

Methods

DOMDocument

Creates a new document.

fromXMLString

Creates a new document from a string of XML characters.

fromJXON

Creates a new document from a JXON object.

load

Creates a new document from an XML file.

toXMLString

Converts the XML document into a string of characters.

createElement

Creates a new element.

createElementNS

Creates a new element with the specified name and namespace.

createTextNode

Creates a new text type node.

createComment

Creates a new comment type node.

createCDATASection

Creates a new CDATA type node.

createProcessingInstruction

Creates a new processing instruction.

createEntityReference

Creates a new entity reference.

getElementsByTagName

Returns the list of all elements with the specified name.

getElementsByTagNameNS

Returns the list of all the document elements with the specified name and namespace.

getElementById

Returns the element with the specified ID.

importNode

Creates a node copy from another document.

normalizeDocument

Normalizes the document: the entity references are replaced and adjacent text nodes fusioned.

renameNode

Changes the name of an element or an attribute.

Properties

root

The document's root element. This propery is synonomous with

documentElement

.

documentElement

Document's root element.

documentURI

Document namespace URI.

Features

Available in:

  • Content management
  • Delivery properties
  • Delivery message
  • Typology rule
  • Import
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow