om.DomDocument.createEntity

Create a new entity node in the DOM document.

Syntax

createEntity(
   name STRING )
  RETURNING result om.DomNode
  1. name defines the name of the entity node.

Usage

Use the method createEntity() to create a new om.DomNode entity node. The entity name must be passed as parameter.

The text representation of a entity node is &name;.

The new created node will have the reserved tagName "@entity" , with a single attribute named "@entity" containing the text of the entity.

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

Example

DEFINE n om.DomNode
LET n = mydoc.createEntity("quot")