Requirements for using XPCML

The Extensible Program Call Markup Language (XPCML) has the same workstation Java™ virtual machine requirements as the rest of the IBM® Toolbox for Java.

For more information, see the following page:

Workstation requirements for running IBM Toolbox for Java applications

In addition, using XPCML includes requirements for the XML schema file, XML parser, and Extensible Stylesheet Language Transformation (XSLT) processor:

XML schema file

Your XPCML documents must know the location of the file that contains the schema. The default schema for IBM Toolbox for Java is xpcml.xsd, which resides within the jt400.jar file.

To use the default schema, extract xpcml.xsd from jt400.jar, then place the file in a suitable location. The following procedure shows one way that you can extract the .xsd file on a workstation.

Extract the xpcml.xsd schema file
  • Start a command line session in the directory that contains jt400.jar
  • Use the following command to extract the .xsd file:
    jar xvf  jt400.jar   com/ibm/as400/data/xpcml.xsd
Note: If you do not run the previous command from the directory that contains jt400.jar, you can specify a fully qualified path to jt400.jar.

You can place the default schema file (or any schema file) in any directory. The only requirement is that you specify the location of the schema file by using the xsi:noNamespaceSchemaLocation attribute in the <xpcml> tag.

You can specify the location of the schema as a file path or as a URL.

Note: Although the following examples use xpcml.xsd as the schema file, you can specify any schema that extends xpcml.xsd.

To see an HTML version of the xpcml.xsd file, see the following page:

Schema xpcml.xsd file

XML parser and XSLT processor

At run-time, you must include an XML parser and an XSLT processor in your CLASSPATH environment variable. For more information, see the following page:

XML parser and XSLT processor