The om.XmlReader class provides methods to read and process a file
written in XML format.
Steps to use a XML reader:
- Declare a variable with the om.XmlReader type.
- Create the reader object with the createFileReader() method and assign the reference to the
variable.
- Process SAX events in a WHILE loop, by reading document fragments with
the read()
method.
- Inside the loop, according to the SAX event, process element attributes with getAttributes() or get the element
data with the getCharacters()
methods.