XML for RPG and Procedural Languages Documentation

Readme
Installation
API Docs
Samples
Programming
License

Building the RPG samples

    Before you can create the modules you may need to include the library that has the header files in the user library list.
    addlible XML4PR400

    Whenever you see <progname> replace it with the name of a program from the list below.

  1. Create the module:
    crtrpgmod module(<yourlibrary>/<progname>) srcfile(xml4pr400/qrpglesrc)
  2. Create the program by binding the module to the XML4PR400 service program:
    crtpgm pgm(<yourlibrary>/<progname>) module(*pgm) bndsrvpgm(xml4pr400/xml4pr400) actgrp(*new)
  3. Here is a listing of the RPG sample programs provided:

      CreateDoc - Illustrates how to create a DOM tree in memory and then print the element count.
      CreateXML - Illustrates how to create a DOM tree in memory and then output it to an IFS stream file.
      Create284 - Illustrates how to create a DOM tree in memory and then output it to an IFS stream file in CCSID 284, Spanish
      DOMPrint - Uses the DOM parser to print the supplied XML document using the new XMLFormatter APIs.
      PParse - Uses the SAX parser to count the number of elements in an XML file using progressive parsing.
      SAXCount - Uses the SAX parser to count the number of elements in an XML file.
      DOMCount - Uses the DOM parser to count the number of elements in an XML file.
      MEMParse - Uses the SAX parser to parse from a memory buffer input source.
      Redirect - This program redirects the DTD of the XML file to another one in the source.
      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.
      SetRmvAttr - In this example a DOM_Node of type Element will be implicitly cast to DOM_Element in calls to QxmlDOM_Element_removeAttribute and QxmlDOM_Element_setAttribute


XML4PR - XML4C Interface Wrapper for RPG, C and COBOL
Copyright 2000,2001,2002 International Business Machines. All Rights Reserved.