multifocal-0.0.1: examples/company.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="company">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="dept" type="Dept"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:group name="depts">
<xsd:sequence>
<xsd:element name="dept" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="Dept">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="manager">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="employee" type="Employee"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="employee" type="Employee"/>
<xsd:element name="dept" type="Dept"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Employee">
<xsd:sequence>
<xsd:element name="person">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="address" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="salary" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>