X hits on this document

330 views

0 shares

0 downloads

0 comments

95 / 120

2) Create an XML Schema which represents all of the data in the SMPLCALC- INTERFACE COBOL data structure. Instead of writing this by hand, you can use

the Micro Focus Net Express CBL2XML wizard [37].

The CBL2XML wizard in Micro Focus Net Express conveniently generates an XML

Schema from a COBOL data structure. The result of using SMPLCALC.cpy as input to

the CBL2XML wizard is given in Table 9.3.

07: 08: 09: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 25:

<element name="SI-OPERAND-1"> <simpleType> <restriction base="integer"> <totalDigits value="9" /> </restriction> </simpleType> </element> <element name="SI-OPERAND-2"> <simpleType> <restriction base="integer"> <totalDigits value="9" /> </restriction> </simpleType> </element> <element name="SI-OPERATION"> <simpleType> <restriction base="string"> <enumeration value="+" /> <enumeration value="-" /> <enumeration value="*" /> </restriction> </simpleType> </element> <element name="SI-RESULT"> <simpleType> <restriction base="integer"> <totalDigits value="18" /> </restriction> </simpleType>

26:

</element>

Table 9.3. XML Schema generated from the COBOL data structure. 01: <?xml version="1.0" encoding="UTF-8"?>

87

06:

<sequence>

02: 03: 04: 05:

<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <element name="SMPLCALC-INTERFACE"> <complexType>

Document info
Document views330
Page views331
Page last viewedMon Dec 05 09:50:06 UTC 2016
Pages120
Paragraphs2913
Words25794

Comments