om.SaxDocumentHandler.readXmlFile
Reads and processes an XML file with the SAX document handler.
Syntax
readXmlFile(
path STRING )
- path is the path to an XML formatted file.
Usage
Use the readXmlFile()
method after creating the
om.SaxDocumentHandler
object, to process the XML data from a file input
stream.
Example
DEFINE f om.SaxDocumentHandler
LET f = om.SaxDocumentHandler.createForName("mysaxmod")
CALL f.readXmlFile("cars.xml")
...
For a complete example, see Example 1: Extracting phone numbers from a directory.