The SaxDocumentHandler class

The om.SaxDocumentHandler class provides an interface to write an XML filter with events.

This class follows the SAX standards.

A om.SaxDocumentHandler object can be used in two different ways:

  1. To implement an XML SAX filter, based on functions defined in a .4gl module, by using the createForName() class method.
  2. To write an XML document to a file, process or socket output, by using om.XmlWriter creation methods, and the om.SaxDocumentHandler processing methods.

The om.SaxDocumentHandler class also provides methods to process all SAX events by hand. This is useful if you want to chain SAX filters.