om.DomDocument.createElement

Create a new element node in the DOM document.

Syntax

createElement(
   tag STRING )
  RETURNING result om.DomNode
  1. tag defines the tag name of the node.

Usage

Use the method createElement() to create a new om.DomNode element node. The tag name of the element must be passed as parameter.

To hold the reference to the new node, define a variable with the type om.DomNode type.

DEFINE n om.DomNode
LET n = mydoc.createElement("Car")