77 lines
4.8 KiB
HTML
77 lines
4.8 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="Advantages of XPCML over PCML" />
|
|
<meta name="abstract" content="Extensible Program Call Markup Language (XPCML) offers several valuable enhancements over PCML." />
|
|
<meta name="description" content="Extensible Program Call Markup Language (XPCML) offers several valuable enhancements over PCML." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahhxpcmlmain.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzahhxpcmlenhance" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Advantages of XPCML over PCML</title>
|
|
</head>
|
|
<body id="rzahhxpcmlenhance"><a name="rzahhxpcmlenhance"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Advantages of XPCML over PCML</h1>
|
|
<div><p>Extensible Program Call Markup Language (XPCML) offers several
|
|
valuable enhancements over PCML.</p>
|
|
<div class="section"><ul><li>Specify and pass values for program parameters</li>
|
|
<li>Retrieve the results of a program call to your iSeries™ server in XPCML</li>
|
|
<li>Transform an existing PCML document into the equivalent XPCML document</li>
|
|
<li>Extend and customize the XPCML schema to define new simple and complex
|
|
elements and attributes</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Specify and pass values for program parameters</h4><p>XPCML
|
|
uses an XML schema to define program parameter types; PCML uses a data type
|
|
definition (DTD). At parse time, the XML parser validates data values entered
|
|
as parameters against the appropriate parameters as defined in the schema.
|
|
Data types exist for parameters of many types: strings, integers, longs, and
|
|
so on. This ability to specify and pass values for program parameters is a
|
|
significant improvement over PCML. In PCML, you can verify values for parameters
|
|
only after parsing the PCML document. Additionally, verifying parameter values
|
|
in PCML often requires coding your application to perform the validation.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Retrieve results of a program call in XPCML</h4><p>XPCML
|
|
also provides the capability to retrieve program call results as XPCML. In
|
|
PCML, you obtain program call results by calling one of the getValue methods
|
|
of the ProgramCallDocument class after you make the call to the program. In
|
|
XPCML, you can use the getValue methods, but you can also have your XPCML
|
|
call a generateXPCML method, which returns the results of a program call as
|
|
XPCML.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Transform existing PCML documents into XPCML</h4><p>A new
|
|
method of the ProgramCallDocument class, transformPCMLToXPCML, enables you
|
|
to transform existing PCML documents to equivalent XPCML documents. This
|
|
allows you to take advantage of new XPCML function without writing XPCML source
|
|
for your existing iSeries program call documents. </p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Extend and customize the XPCML schema</h4><p>XPCML is extensible
|
|
which means you can define new parameter types that extend those specified
|
|
by the XPCML schema. Condensing XPCML extends the XPCML schema to create
|
|
new data type definitions that simplify and improve the readability and usability
|
|
of your XPCML documents.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahhxpcmlmain.htm" title="Extensible Program Call Markup Language (XPCML) enhances the functionality and usability of the Program Call Markup Language (PCML) by offering support for XML schemas. XPCML does not support serialization, so unlike PCML, you cannot serialize an XPCML document.">Extensible Program Call Markup Language</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |