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:annotation name="final"/> 7 </xs:element> 8 <xs:element name="street" type="xs:string"/> 9 <xs:element name="city" type="xs:string"/> 10 </xs:sequence> 11 </xs:complexType> 12 <xs:complexType name="USAddressP"> 13 <xs:annotation name="final"/> 14 <xs:complexContent> 15 <xs:extension base="address"> 16 <xs:sequence> 17 <xs:element name="state" type="xs:string"/> 18 <xs:element name="zipcode" type="xs:positiveInteger"/> 19 </xs:sequence> 20 </xs:extension> 21 </xs:complexContent> 22 </xs:complexType> 23 <xs:complexType name="KRAddress"> 24 <xs:complexContent> 25 <xs:restriction base="address"> 26 <xs:sequence> 27 <xs:element name="name1" type="xs:string"/> 28 <xs:element name="street2" type="xs:string"/> 29 <xs:element name="city3" type="xs:string" fixed="Seoul"/> 30 </xs:sequence> 31 </xs:restriction> 32 </xs:complexContent> 33 </xs:complexType> 34 <xs:complexType name="subAddress"> 35 <xs:choice> 36 <xs:element name="choice1" type="xs:string"> 37 <xs:annotation name="final"/> 38 <xs:annotation name="nullable"/> 39 </xs:element> 40 <xs:element name="choice2" type="xs:string"> 41 <xs:annotation name="nonnull"/> 42 <xs:annotation name="final"/> 43 </xs:element> 44 </xs:choice> 45 </xs:complexType> 46 <xs:element name="person"> 47 <xs:complexType> 48 <xs:sequence> 49 <xs:element name="name" type="xs:string"/> 50 <xs:element name="USAddressP" type="USAddressP"/> 51 <xs:element name="KRAddress" type="KRAddress"/> 52 <xs:element name="subAddress" type="subAddress"/> 53 </xs:sequence> 54 </xs:complexType> 55 </xs:element> 56 <xs:element name="person2"> 57 <xs:complexType> 58 <xs:sequence> 59 <xs:element name="name" type="xs:string"/> 60 <xs:element name="USAddressP" type="USAddressP"/> 61 <xs:element name="KRAddress" type="KRAddress"/> 62 <xs:element name="subAddress" type="subAddress"> 63 <xs:annotation name="nonnull"/> 64 </xs:element> 65 </xs:sequence> 66 </xs:complexType> 67 </xs:element> 68 69</xs:schema> 70