Progress
External Program
Interfaces
Basic Tasks Of a Progress SAX Application
A typical Progress SAX application does the following:
- Creates a SAX-READER object
- Runs a persistent procedure that contains the callbacks
- Configures the SAX-READER object by:
- Starts the parser by calling SAX-PARSE() or SAX-PARSE-FIRST()
- Handles XML data passed to the callbacks as the parser proceeds
- Monitors the state of the parse by checking error codes and the parse status after each call to SAX-PARSE(), SAX-PARSE-FIRST(), and SAX-PARSE-NEXT()
- Releases resources, including deleting the SAX-READER object
Most of these tasks can be performed using the attributes and methods of the SAX-READER object, which are summarized in Table 12–7.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |