om.DomDocument.createFromString

Create a new om.DomDocument object from an XML string.

Syntax

om.DomDocument.createFromString(
   string STRING )
  RETURNING result om.DomDocument
  1. string is the string expression containing XML data.

Usage

Use the class method om.DomDocument.createFromString() to instantiate a new DomDocument object that is filled with the content of the specified XML formatted string.

To hold the reference to a DOM document object, define a variable with the type om.DomDocument type.

DEFINE d om.DomDocument
LET d = om.DomDocument.createFromString("<Vehicles/>")