1<!-- https://msdn.microsoft.com/ko-kr/library/dd489283.aspx -->
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3            xmlns:tns="http://tempuri.org/PurchaseOrderSchema.xsd"
4            targetNamespace="http://tempuri.org/PurchaseOrderSchema.xsd"
5            elementFormDefault="qualified">
6    <xsd:element name="PurchaseOrder" type="tns:PurchaseOrderType"/>
7    <xsd:complexType name="PurchaseOrderType">
8        <xsd:sequence>
9            <xsd:element name="ShipTo" type="tns:USAddress" maxOccurs="2"/>
10            <xsd:element name="BillTo" type="tns:USAddress"/>
11        </xsd:sequence>
12        <xsd:attribute name="OrderDate" type="xsd:date"/>
13    </xsd:complexType>
14
15    <xsd:complexType name="USAddress">
16        <xsd:sequence>
17            <xsd:element name="name"   type="xsd:string"/>
18            <xsd:element name="street" type="xsd:string"/>
19            <xsd:element name="city"   type="xsd:string"/>
20            <xsd:element name="state"  type="xsd:string"/>
21            <xsd:element name="zip"    type="xsd:integer"/>
22        </xsd:sequence>
23        <xsd:attribute name="country" type="xsd:NMTOKEN" fixed="US"/>
24    </xsd:complexType>
25</xsd:schema>