DOMNode (Class)

DOMNode is the parent class of different components that make up a document.

Methods

insertBefore

Insert a node before a specific position.

replaceChild

Replace a node.

removeChild

Delete a node.

appendChild

Insert a node at the end of the list of sub-folders.

hasChildNodes

Tests whether the node has at least one sub-folder.

normalize

Normalizes the node: adjacent text nodes are merged and empty text nodes are deleted.

hasAttributes

Tests whether the node has at least one attribute.

isSameNode

Tests whether the given reference represents the same node.

isDefaultNamespace

Tests whether the given namespace is the default.

lookupNamespaceURI

Searched the URI of the namespace linked to the given prefix.

isEqualNode

Compares two nodes.

Properties

nodeName

Qualified node name. The name depends on the node type.

nodeValue

Node value. The value depends on the type of node.

nodeType

Node type.

parentNode

Parent node or null.

childNodes

Returns the list of child nodes in the form of a table.

firstChild

First child node of this node or null if it has no children.

lastChild

Last child node of this node or null if it has no children.

nextSibling

Node following this node or null.

previousSibling

The node immediately preciding this node or null.

attributes

Returns a table containing the list of attributes if the node is an element, otherwise null.

namespaceURI

URI of the node namespace.

prefix

The namespace prefix of this node or empty if not specified.

localName

Local part of the node's qualified name.

baseURI

Base URI of this node.

textContent

Text content of the node. The value depends on the type of node.

ownerDocument

The document to which this node belongs.

Features

Available in:

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