om.DomDocument.createFromXmlFile

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

Syntax

om.DomDocument.createFromXmlFile(
   filename STRING )
  RETURNING result om.DomDocument
  1. filename is the path to the file containing XML data.

Usage

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

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.createFromXmlFile("vehicles.xml")