Samples

Samples for each XML parser, XSL transformer, and XML Scripting version provided with the XML Toolkit are available by installing the appropriate development option for each.

For XML, C++ samples are provided through integrated file system files. RPG, C, and COBOL samples are provided through source physical files.

For XSL, the C and C++ samples are provided through integrated file system files.

For XML Scripting, the samples are provided through integrated file system files.

The version for these is indicated in either the integrated file system path location (n_n_n or n_n) or in the name of the tools development library (QXMLDEVnnn for XML or QXSLDEVnnn for XSL). Information describing the function of each sample and how to create, bind, and run the samples for a given supported language are provided. See the API documentation.

A source file, QCLSRC, is provided in the tools development library and contains members that create the samples provided for each language version.

Table 1. Samples locations
Option XML parser version Samples location
2 XML4C version 5.6 Integrated file system location: /QIBM/ProdData/xmltoolkit2/xml5_6_0/samples. The include files are located in the /QIBM/ProdData/xmltoolkit2/xml5_6_0/include/xercesc directory.
2 XML4PR version 5.6 Library: QXMLDEV560. This library contains the QRPGLESRC, QCBLLESRC, QCSRC, and H source files. The include files are contained in the corresponding file member QXML4PR560.
2 XSLT4C version 1.10 Integrated file system location: /QIBM/ProdData/xmltoolkit2/xsl_1100/samples. The include files are located in the /QIBM/ProdData/xmltoolkit2/xsl_1100/include/xalanc directory.
3 XML Scripting for IBM® i Integrated file system location: /QIBM/ProdData/xmltoolkit2/scripting1_0/samples
5 XML4C version 5.6.3 Integrated file system location: /QIBM/ProdData/xmltoolkitv4/xml5_6_3/samples. The include files are located in the /QIBM/ProdData/xmltoolkitv4/xml5_6_3/include/xercesc directory.
5 XML4PR version 5.6.3 Library: QXML563V4. This library contains the QRPGLESRC, QCBLLESRC, QCSRC, and H source files. The include files are contained in the corresponding file member QXML4PR563.
5 XSLT4C version 1.10.2 Integrated file system location: /QIBM/ProdData/xmltoolkitv4/xsl_1102/samples. The include files are located in the /QIBM/ProdData/xmltoolkitv4/xsl_1102/include/xalanc directory.
7 XML4C version 5.6.3 Integrated file system location: /QIBM/ProdData/xmltoolkitv6/xml5_6_3/samples. The include files are located in the /QIBM/ProdData/xmltoolkitv6/xml5_6_3/include/xercesc directory.
7 XML4PR version 5.6.3 Library: QXML563V6. This library contains the QRPGLESRC, QCBLLESRC, QCSRC, and H source files. The include files are contained in the corresponding file member QXML4PR563.
7 XSLT4C version 1.10.2 Integrated file system location: /QIBM/ProdData/xmltoolkitv6/xsl_1102/samples. The include files are located in the /QIBM/ProdData/xmltoolkitv6/xsl_1102/include/xalanc directory.