om.DomNode.parse

Parses an XML formatted string and creates the DOM structure in the current node.

Syntax

parse(
   string STRING )
  RETURNING result om.DomNode
  1. string is an XML formatted string.

Usage

The parse() method scans the XML formatted string passed as parameter and creates the corresponding DOM nodes into the current node. The method then returns the new created child DOM node.

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

Example

DEFINE parent, child om.DomNode
...
LET child = parent.parse("<Item/>")