XML for RPG and Procedural Languages Documentation |
|
Building the COBOL samples
Before you can create the modules you must include the library that has the header files in the user library list.
Whenever you see <progname> replace it with the name of a program from the list below. For DOMCount and DOMPrintFor SAXCount and SAXPrint Because of the callback mechanism the SAX based parsers in COBOL must build two programs. More information on how the callbacks are set up can be found in the COBOL samples explanation. The following example shows how to build SAXCount. To build SAXPrint replace all occurrences of "SAXCount" and "SAXCounter" with "SAXPrint" and "SAXPrinter" respectively. Here is a listing of the COBOL sample programs provided:
DOMCount - Uses the DOM parser to count the number of elements in an XML file. SAXCount - Uses the SAX parser to count the number of elements in an XML file. SAXPrint - Uses the SAX parser to print the supplied XML document with the XMLFormatter. SAX2Count - Uses the SAX2 parser APIs to count the number of elements in an XML file. SAX2Print - Uses the SAX2 parser APIs and the XMLFormatter to print the contents of an XML file. |
|
![]() | XML4PR - XML4C Interface Wrapper for RPG, C and COBOL
Copyright 2000,2001,2002 International Business Machines. All Rights Reserved. |