1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
4
<xs:simpleType name="stringtype">
5
<xs:restriction base="xs:string"/>
8
<xs:simpleType name="inttype">
9
<xs:restriction base="xs:positiveInteger"/>
12
<xs:simpleType name="dectype">
13
<xs:restriction base="xs:decimal"/>
16
<xs:simpleType name="orderidtype">
17
<xs:restriction base="xs:string">
18
<xs:pattern value="[0-9]{6}"/>
22
<xs:complexType name="shiptotype">
24
<xs:element name="name" type="stringtype"/>
25
<xs:element name="address" type="stringtype"/>
26
<xs:element name="city" type="stringtype"/>
27
<xs:element name="country" type="stringtype"/>
31
<xs:complexType name="itemtype">
33
<xs:element name="title" type="stringtype"/>
34
<xs:element name="note" type="stringtype" minOccurs="0"/>
35
<xs:element name="quantity" type="inttype"/>
36
<xs:element name="price" type="dectype"/>
40
<xs:complexType name="shipordertype">
42
<xs:element name="orderperson" type="stringtype"/>
43
<xs:element name="shipto" type="shiptotype"/>
44
<xs:element name="item" maxOccurs="unbounded" type="itemtype"/>
46
<xs:attribute name="orderid" type="orderidtype" use="required"/>
50
<xs:complexType name="datatype">
52
<xs:element name="shiporder" maxOccurs="unbounded" type="shipordertype"/>
56
<xs:element name="data" type="datatype"/>