IBM Version 5 manual Generate XML Schema, Example 6-10 XML Generated through the DDL to XML Schema

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 139
Image 139

Figure 6-12 Generate XML Schema

The XML Schema generated for the SCHEDULE table is shown below:

Example 6-10 XML Generated through the DDL to XML Schema

<?xml version="1.0" encoding="UTF-8"?>

<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com/AIRLINE/OSAMURS3"

xmlns:AIRLINEOSAMURS3="http://www.ibm.com/AIRLINE/OSAMURS3"> <element name="SCHEDULE" type="AIRLINEOSAMURS3:SCHEDULE">

<key name="SCHEDULEPRIMKEY">

<selector xpath="AIRLINEOSAMURS3:SCHEDULE"/> <field xpath="FLIGHTNO"/>

</key>

</element>

<complexType name="SCHEDULE"> <sequence>

<element name="FLIGHTNO"> <simpleType>

Chapter 6. RDB and XML integration 123

Page 139
Image 139
IBM Version 5 manual Generate XML Schema, Example 6-10 XML Generated through the DDL to XML Schema