Try OpenEdge Now
skip to main content
Working with XML
Reading XML Documents with the Simple API for XML (SAX) : ABL SAX and WebSpeed : SAX and the AppBuilder
 

SAX and the AppBuilder

To use the AppBuilder to develop ABL SAX applications, perform the following tasks:
*Create a SAX handler object
*Supply an override for each callback your application requires
*Handle the context (optional)
To create a SAX Handler object which corresponds to a procedure (.p) file to contain the SAX callbacks:
1. From the AppBuilder main menu, select File > New. The New dialog box appears.
2. Select the Procedures toggle box. The SAX Handler Template appears:
3. Select Sax Handler and click OK. The new Sax Handler object appears, along with the Section Editor for it:You use the Section Editor to create the callbacks required by your SAX application.
4. Change the Section combo box to Procedure. The New Procedure dialog box appears.
5. From the Name drop-down list, select the name of the desired callback. Then select the Override button and click OK:
Note: ABL implements SAX callbacks as super procedures (which you can override) of the SAX Handler object.
The Section Editor displays the selected callback procedure, as shown:
6. Modify the callback as desired, then save it.
Note: If you misspell the name of a callback, it is not invoked at run time. Rather, the corresponding internal procedure in the super procedure is invoked.
* Storing and recalling context information
* Context management example