<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >

    <!-- ExcelDocument, the root element -->	            
    <xs:element name="ExcelDocument">
        <xs:complexType>
            <xs:element ref="Author"/>
            <xs:element ref="WorkSheet" minOccurs="0"  maxOccurs="unbounded"/>
        </xs:complexType>
    </xs:element>

    <!-- Author, this element contains the author information of the document -->	     
    <xs:element name="Author" type="xs:string"/>
    
    <!-- WorkSheet, this element contains title and Row collection -->
    <xs:element name="WorkSheet">
        <xs:complexType>
            <xs:element name="Title" type="xs:string"/>
            <xs:element ref="Row" minOccurs="0"  maxOccurs="unbounded"/>
        </xs:complexType>
    </xs:element>
    
    <!-- Row, this element contains cells collection -->
    <xs:element name="Row">
        <xs:complexType>
            <xs:attribute name="ID" type="xs:integer"/>
            <xs:element ref="Cell" minOccurs="0"  maxOccurs="unbounded"/>
        </xs:complexType>
    </xs:element>
    
    <!-- Cell, this element contains data information of one cell -->
    <!-- The type is Number or String -->
    <xs:element name="Cell">
        <xs:simpleContent>
          <xs:extension base="xs:string">
            <xs:attribute name="ID" type="xs:integer" />
            <xs:attribute name="Type" type="xs:string" />
          </xs:extension>
        </xs:simpleContent>
    </xs:element>
    
</xs:schema>    
    

