Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
<?xml version="1.0" encoding="UTF-8"?>
<Customers>
<MyCustomer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomerBasic" id="1" />
<MyCustomer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomerPremium" id="2">
<credit="10">
</MyCustomer>
</Customers>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<!-- defini an abstract Customer -->
<xsd:complexType name="AbstractCustomer" abstract="true" >
<xsd:attribute name="id" type="xsd:string"/>
<xsd:attribute name="firstname" type="xsd:string"/>
<xsd:attribute name="lastename" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CustomerBasic">
<xsd:complexContent>
<xsd:extension base="AbstractCustomer">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerPremium">
<xsd:complexContent >
<xsd:extension base="AbstractCustomer">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="credits" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="Customers">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="MyCustomer" type="AbstractCustomer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>