<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.mycompany.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.mycompany.com"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Party" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="id" type="xs:string"></xs:element>
<xs:element name="PartyName" type="xs:string" />
<xs:element name="PartyType" type="xs:string" />
<xs:element name="AddressDetails" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="AddressType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Mailing" />
<xs:enumeration value="Office" />
<xs:enumeration value="Home" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AddressLine1" type="xs:string"></xs:element>
<xs:element name="AddressLine2" type="xs:string"></xs:element>
<xs:element name="Suburb" type="xs:string"></xs:element>
<xs:element name="State" type="xs:string"></xs:element>
<xs:element name="Postcode" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="Adviser" type="tns:Ref_Adviser" />
<xs:complexType name="Ref_Adviser">
<xs:sequence>
<xs:element name="firstName" type="xs:string" />
<xs:element name="surname" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>