om.DomNode.loadXml

Load an XML file into the current node.

Syntax

loadXml(
   filename STRING )
  RETURNING result om.DomNode
  1. filename is the path to the XML file.

Usage

The loadXml() method takes a file path as parameter and loads the XML content into the current node, by creating a new DOM structure in memory. The method then returns the new created child DOM node.

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

DEFINE parent, new om.DomNode
...
LET new = parent.loadXml("myfile.xml")