The XmlReader class
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.XmlReadertype. - Create the reader object with the
createFileReader()method and assign the reference to the variable. - Process SAX events in a
WHILEloop, by reading document fragments with theread()method. - Inside the loop, depending on the SAX event, process element attributes with getAttributes() or get the element data with the getCharacters() methods.