XML for RPG and Procedural Languages Documentation |
|
XML4PR SamplesBuilding the Samples
Many of the same samples are provided in each of the supported languages. Instructions for building the samples are broken down by language. To see specific instructions for a language, select from the list below: To assist in creating the samples, CL program source has been provided in source file QCLSRC in library XML4PR400. By creating the appropriate CL program and calling it with a target library, the samples will be created for you. Note when calling the COBOL SAX/SAX2 samples provided, the event handler programs (ex. SAXCOUNTER) are not library qualified in the source code, so you will need to make sure that the program's library is on the library list. Running the Samples
call <yourlibrary>/<samplepgm> [options] <XML file>
<yourlibrary> is the library that the programs were created in and <samplepgm> is the name of the sample you want to run (note that not all samples are available in all of the supported languages). Command Line Options - Some of the samples require specific command line input parameters. Run the program without any parameters to get usage information for each sample. The command line parameters are specific to the sample and the programming language it was implemented in. For the most part, optional parameters precede and required parameter, which is frequently the XML File name. XML File - Some of the samples require as input an XML file. This must be either a fully qualified IFS path name or the parser will look for the XML file in the current working directory. In-Depth Explanation of API Calls
|
|
![]() | XML4PR - XML4C Interface Wrapper for RPG, C and COBOL
Copyright 2000,2001,2002 International Business Machines. All Rights Reserved. |