summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/schema/files/order.xsd
blob: 405cafe4353fb936b46a184aef93945a4e236f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:element name="order">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="customerId" type="xsd:positiveInteger"/>
                <xsd:element name="article" type="articleType" maxOccurs="unbounded"/>
                <xsd:element name="deliveryDate" type="xsd:date"/>
                <xsd:element name="payed" type="xsd:boolean"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>

    <xsd:complexType name="articleType">
        <xsd:sequence>
            <xsd:element name="articleId" type="xsd:positiveInteger"/>
            <xsd:element name="count" type="xsd:positiveInteger"/>
            <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>