om.XmlReader.createFileReader

Creates an XML reader object from a file.

Syntax

om.XmlReader.createFileReader(
   path STRING )
  RETURNS om.XmlReader
  1. path is the path to an XML formatted file.

Usage

Use the om.XmlReader.createFileReader() method to create a new om.XmlReader object, to process the XML data from a file input stream.

To hold the reference to an XmlReader object, define a variable with the om.XmlReader type.

Example

DEFINE r om.XmlReader
LET r = om.XmlReader.createFileReader("cars.xml")
...

For a complete example, see Example 1: Parsing an XML file.