om.DomDocument methods

Methods of the om.DomDocument class.

Table 1. Class methods
Name Description
om.DomDocument.create(
   tag STRING )
  RETURNING result om.DomDocument
Create a new empty om.DomDocument object.
om.DomDocument.createFromString(
   string STRING )
  RETURNING result om.DomDocument
Create a new om.DomDocument object from an XML string.
om.DomDocument.createFromXmlFile(
   filename STRING )
  RETURNING result om.DomDocument
Create a new om.DomDocument object from an XML file.
Table 2. Object methods
Name Description
createChars(
   string STRING )
  RETURNING result om.DomNode
Create a new text node in the DOM document.
createElement(
   tag STRING )
  RETURNING result om.DomNode
Create a new element node in the DOM document.
createEntity(
   name STRING )
  RETURNING result om.DomNode
Create a new entity node in the DOM document.
copy(
   source om.DomNode,
   deep INTEGER )
  RETURNING result om.DomNode
Create a new element node by copying an existing node.
getDocumentElement()
  RETURNING result om.DomNode
Returns the root node element of the DOM document.
getDocumentById(
   id INTEGER )
  RETURNING result om.DomNode
Returns a node element according to the internal AUI tree id.
removeElement(
   element om.DomNode )
Remove a DomNode object and all its descendants.