<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CommandTypes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="CommandTypes" >
    <xs:complexType>
      <xs:choice minOccurs="1" maxOccurs="unbounded">
        <xs:element name="CommandType">
          <xs:complexType>
            <xs:sequence>
			  <xs:element  name="SamplePrint" minOccurs="0" maxOccurs="1">
			    <xs:complexType>
				  <xs:sequence>
				    <xs:element name="group" minOccurs="1" maxOccurs="unbounded">
					  <xs:complexType>
					    <xs:sequence>
						  <xs:element name="file" minOccurs="1" maxOccurs="unbounded">
						    <xs:complexType>
							  <xs:attribute name="name" use="required" >
							    <xs:simpleType>
								  <xs:restriction base="xs:string" >
									<xs:maxLength value="14" />
									<xs:minLength value="1" />
								  </xs:restriction>
							    </xs:simpleType>
							  </xs:attribute>
							  <xs:attribute name="name_EN" >
							    <xs:simpleType>
								  <xs:restriction base="xs:string" >
									<xs:maxLength value="24" />
									<xs:minLength value="1" />
								  </xs:restriction>
							    </xs:simpleType>
							  </xs:attribute>
							  <xs:attribute name="img" type="xs:string" use="required"/>
							  <xs:attribute name="path" type="xs:string" use="required"/>
						    </xs:complexType>
						  </xs:element>
					    </xs:sequence>
					    <xs:attribute name="name" use="required" >
						  <xs:simpleType>
							<xs:restriction base="xs:string" >
								<xs:maxLength value="12" />
								<xs:minLength value="1" />
							</xs:restriction>
					      </xs:simpleType>
						</xs:attribute>
						<xs:attribute name="name_EN" use="required" >
						  <xs:simpleType>
							  <xs:restriction base="xs:string" >
								<xs:maxLength value="24" />
								<xs:minLength value="1" />
							  </xs:restriction>
						  </xs:simpleType>
						</xs:attribute>
					  </xs:complexType>
					</xs:element>
				  </xs:sequence>
				</xs:complexType>
			  </xs:element>
			</xs:sequence>
            <xs:attribute name="name" type="xs:string" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>