Read an XML file using methods as callback
- Last Updated: October 17, 2024
- 4 minute read
- OpenEdge
- Version 13.0
- Documentation
In this sample code the Main.p exercise callbacks functionality against the SAX-READER object that reads the XML data in the familytree.xml file. The callback event handlers for the tokens encountered are implemented in the callbackclass.cls file. The schema that defines the data in the XML file is contained in the familytree.dtd file.
Main.p
|
callbackclass.cls
|
familytree.dtd
|
familytree.xml
|