<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://www.camera.org"
        xmlns:camera="http://www.camera.org"
        elementFormDefault="qualified">

    <element name="camera" type="camera:cameraType" />
    <element name="purchaseDate" type="gYearMonth" />
    <element name="warranty" type="string" />
    <element name="features">
        <complexType>
           <sequence>
             <element ref="camera:memory-capacity" />
           </sequence>
        </complexType>
    </element>
    <element name="memory-capacity" type="string" />
    <element name="suppliers">
        <complexType>
           <sequence>
             <element ref="camera:local-supplier" />
           </sequence>
        </complexType>
    </element>
    <element name="local-supplier" type="string" />

    <complexType name="cameraType">
         <sequence>
             <element ref="camera:purchaseDate" />
             <element ref="camera:warranty" />
             <element ref="camera:features" />
             <element ref="camera:suppliers" />
        </sequence>
    </complexType>
 
</schema>

