The schemas that are produced by the CA JARS XML writer are very simple in nature, in that they only describe each field under a REPORT_LINE tag in the document.
The schema itself is constructed to the 2001 schema standard as defined by the W3C. For more information, go to http://www.w3.org/2001/XMLSchema. By definition, the schema is a well-formed XML document. It consists of a header (which describes the schema as an XML document), and a series of elements. The order in which the elements are described is as follows:
The schemas produced are not going to have handling for attributes, nor will they show any fields that are not in the report. The only type of value in the schema is character data. This is because the XML document is produced from an exit to the CA JARS report writer print process and the input data into the report are print lines, meaning the data in the document is already formatted as output print data.
Here is a sample schema document:
<?xml version="1.0" encoding="ibm-1047" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="SAMPLE_XML_REPORT">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="REPORT_LINE"
type="rowType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="rowType">
<xs:sequence>
<xs:element name="JOB_NAME"
type="fieldType1" minOccurs="0"/>
<xs:element name="USER_ID"
type="fieldType2" minOccurs="0"/>
<xs:element name="RDR_STRT_DATE"
type="fieldType3" minOccurs="0"/>
<xs:element name="RDR_STRT_TIME"
type="fieldType4" minOccurs="0"/>
<xs:element name="JOB_NBR"
type="fieldType5" minOccurs="0"/>
<xs:element name="CPU_TIME"
type="fieldType6" minOccurs="0"/>
<xs:element name="CC"
type="fieldType7" minOccurs="0"/>
<xs:element name="ELAPSED_TIME"
type="fieldType8" minOccurs="0"/>
<xs:element name="PERCENT_TOTAL"
type="fieldType9" minOccurs="0"/>
<xs:element name="ELAP_PAGE"
type="fieldType10" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="fieldType1">
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType2">
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType3">
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType4">
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType5">
<xs:restriction base="xs:string">
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType6">
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType7">
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType8">
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType9">
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fieldType10">
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
| Copyright © 2012 CA. All rights reserved. |
|