Created
March 27, 2015 20:52
-
-
Save matthewtckr/3964748e85d65e503b17 to your computer and use it in GitHub Desktop.
PDI-13661
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<!-- definition of simple elements --> | |
<xs:element name="orderperson" type="xs:string"/> | |
<xs:element name="name" type="xs:string"/> | |
<xs:element name="address" type="xs:string"/> | |
<xs:element name="city" type="xs:string"/> | |
<xs:element name="country" type="xs:string"/> | |
<xs:element name="title" type="xs:string"/> | |
<xs:element name="note" type="xs:string"/> | |
<xs:element name="quantity" type="xs:positiveInteger"/> | |
<xs:element name="price" type="xs:decimal"/> | |
<!-- definition of attributes --> | |
<xs:attribute name="orderid" type="xs:string"/> | |
<!-- definition of complex elements --> | |
<xs:element name="shipto"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="name"/> | |
<xs:element ref="address"/> | |
<xs:element ref="city"/> | |
<xs:element ref="country"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="item"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="title"/> | |
<xs:element ref="note" minOccurs="0"/> | |
<xs:element ref="quantity"/> | |
<xs:element ref="price"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="shiporder"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="orderperson"/> | |
<xs:element ref="shipto"/> | |
<xs:element ref="item" maxOccurs="unbounded"/> | |
</xs:sequence> | |
<xs:attribute ref="orderid" use="required"/> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment