blob: 834aa66d34ef84e513aac01f3b7c1a44a691bef6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="purchaseOrder" type="purchaseOrderType"/>
<xs:complexType name="purchaseOrderType">
<xs:sequence>
<xs:element type="shipToType" name="shipTo"/>
<xs:element type="billToType" name="billTo"/>
<xs:element type="xs:string" name="comment" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="itemsType" name="items"/>
</xs:sequence>
<xs:attribute type="xs:string" name="orderDate" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:complexType>
<xs:complexType name="itemsType">
<xs:sequence>
<xs:element type="itemType" name="item" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="billToType">
<xs:sequence>
<xs:element type="xs:string" name="name" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="street" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="city" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="state" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="zip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:sequence>
<xs:attribute type="xs:string" name="country" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:complexType>
<xs:complexType name="shipToType">
<xs:sequence>
<xs:element type="xs:string" name="name" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="street" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="city" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="state" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="zip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:sequence>
<xs:attribute type="xs:string" name="country" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:complexType>
<xs:complexType name="itemType">
<xs:sequence>
<xs:element name="productName">
<xs:simpleType>
<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:enumeration value="Lawnmower"/>
<xs:enumeration value="Baby Monitor"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element type="xs:string" name="quantity" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element name="USPrice">
<xs:simpleType>
<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:enumeration value="148.95"/>
<xs:enumeration value="39.98"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element type="xs:string" name="comment" minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<xs:element type="xs:string" name="shipDate" minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:sequence>
<xs:attribute type="xs:string" name="partNum" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:complexType>
</xs:schema>