om.DomNode.appendChild

Adds an existing node at the end of the list of children in the current node.

Syntax

appendChild(
   node om.DomNode )
  1. node is a reference to a node.

Usage

The appendChild() method takes an existing om.DomNode element node and adds it at the end of the children of the object node calling the method.

The node must be created before it is passed as parameter to this method, typically, with om.DomDocument.createElement().

DEFINE parent, child om.DomNode
...
LET child = mydoc.createElement("Item")
CALL parent.appendChild(child)