om.XmlReader.createFileReader

Creates an XML reader object from a file.

Syntax

createFileReader(
   filename STRING )
  RETURNING result om.XmlReader
  1. filename 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 type om.XmlReader type.

Example

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