• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="simple_complex_content" xmlns="simple_complex_content" elementFormDefault="qualified">
2    <xs:complexType name="address">
3        <xs:annotation name="Deprecated"/>
4        <xs:sequence>
5            <xs:element name="name"   type="xs:string"/>
6            <xs:element name="street" type="xs:string"/>
7            <xs:element name="city"   type="xs:string"/>
8        </xs:sequence>
9    </xs:complexType>
10    <xs:complexType name="USAddressP">
11        <xs:complexContent>
12            <xs:extension base="address">
13                <xs:sequence>
14                    <xs:element name="state" type="xs:string"/>
15                    <xs:element name="zipcode" type="xs:positiveInteger"/>
16                </xs:sequence>
17            </xs:extension>
18        </xs:complexContent>
19    </xs:complexType>
20    <xs:complexType name="KRAddress">
21        <xs:complexContent>
22            <xs:restriction base="address">
23                <xs:sequence>
24                    <xs:element name="name1"   type="xs:string"/>
25                    <xs:element name="street2" type="xs:string"/>
26                    <xs:element name="city3"   type="xs:string" fixed="Seoul"/>
27                </xs:sequence>
28            </xs:restriction>
29        </xs:complexContent>
30    </xs:complexType>
31    <xs:complexType name="subAddress">
32        <xs:choice>
33            <xs:element name="choice1" type="xs:string"/>
34            <xs:element name="choice2" type="xs:string"/>
35        </xs:choice>
36    </xs:complexType>
37    <xs:element name="person">
38        <xs:complexType>
39            <xs:sequence>
40                <xs:element name="name" type="xs:string"/>
41                <xs:element name="USAddressP" type="USAddressP"/>
42                <xs:element name="KRAddress" type="KRAddress"/>
43                <xs:element name="subAddress" type="subAddress"/>
44            </xs:sequence>
45        </xs:complexType>
46    </xs:element>
47    <xs:element name="person2">
48        <xs:complexType>
49            <xs:sequence>
50                <xs:element name="name" type="xs:string"/>
51                <xs:element name="USAddressP" type="USAddressP"/>
52                <xs:element name="KRAddress" type="KRAddress"/>
53                <xs:element name="subAddress" type="subAddress"/>
54            </xs:sequence>
55        </xs:complexType>
56    </xs:element>
57
58</xs:schema>
59