我有一个地址类型,
<xs:complexType name="AddressType">
<xs:sequence>
<xs:element name="state" type="xs:string" minOccurs ="0" maxOccurs ="1"/>
<xs:element name="pincode" type="xs:string" minOccurs ="0" maxOccurs ="1"/>
</xs:sequence>
</xs:complexType>
如何创建包含地址类型数组的PERSON类型 像这样:
<xs:complexType name="PersonType">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs ="0" maxOccurs ="1"/>
<xs:element name="id" type="xs:string" minOccurs ="1" maxOccurs ="1"/>
<xs:element name="addresses">
<xs:complexType>
<xs:sequence>
<xs:element name="address" type="AddressType" minOccurs ="0" maxOccurs ="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
我是以正确的方式做到的吗?