om.DomDocument.createChars

Create a new text node in the DOM document.

Syntax

createChars(
   string STRING )
  RETURNING result om.DomNode
  1. string defines the content of the text node.

Usage

Use the method createChars() to create a new om.DomNode text node. The content of the text node must be passed as parameter.

The new created node will have the reserved tagName "@chars", and a single attribute named "@chars" storing the character data.

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

DEFINE n om.DomNode
LET n = mydoc.createChars("Hello, world!")