<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
<xsd:element name="CUSTOMERDATA" type="cdata"/>
<xsd:complexType name="cdata">
<xsd:sequence>
<xsd:element name="CUSTOMER" type="custtype"/>
</xsd:sequence>
</xsd:complextype>
<xsd:complexType name="custtype">
<xsd:sequence>
<xsd:element name="FIRSTNAME" type="xsd:string"/>
<xsd:element name="LASTNAME" type="xsd:string"/>
<xsd:element name="CONTACTINFO" type="contacttype" />
</xsd:sequence>
<xsd:attribute name="CUSTOMERID" type="xsd:string" use="required"/>
</xsd:complextype>
<xsd:complexType name="contacttype">
<xsd:choice>
<xsd:element name="RESIDENCE" type="addtype" />
<xsd:element name="OFFICE" type="addtype" />
</xsd:choice>
</xsd:complextype>
<xsd:complextype name="addtype">
<xsd:group ref="ADDPHONE" />
</xsd:complextype>
<xsd:group name="ADDPHONE">
<xsd:sequence>
<xsd:element name="ADDRESS" type="xsd:string"/>
<xsd:element name="PHONE" type="xsd:string"/>
</xsd:sequence>
</xsd:group>
</xsd:schema >