XML for RPG and Procedural Languages Documentation

Readme
Installation
API Docs
Samples
Programming
License

Building the C 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:
    crtcmod module(<yourlibrary>/<progname>) srcfile(xml4pr400/qcsrc) sysifcopt(*IFSIO)
  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 C 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.
      DOMPrint - Uses the DOM parser to print the supplied XML document with the XMLFormatter.
      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.


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