<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="scanner-type">
   <xs:sequence>
		<xs:element name="name" 				type="xs:string"/>
		<xs:element name="description"		    type="xs:string" minOccurs="0"/>
		<xs:element name="strength" 			type="xs:integer" minOccurs="0"/>
		<xs:element name="anomaly-sensor" 		type="xs:integer" minOccurs="0"/>
		<xs:element name="space" 				type="xs:integer"/>
		<xs:element name="image" 				type="xs:string" minOccurs="0"/>
		<xs:element name="cost-to-build" 	    type="xs:integer"/>
		<xs:element name="cost-to-research"     type="xs:integer"/>
		<xs:element name="maintenance-cost"	    type="xs:integer" minOccurs="0"/>
		<xs:element name="group" 				type="xs:string" minOccurs="0"/>
		<xs:element name="mandatory-restriction" minOccurs="0">
			<xs:complexType>
				<xs:sequence>
					<xs:element name="race" type="xs:string" minOccurs="0"/>
				</xs:sequence>
				<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.MandatoryRestriction"/> 
			</xs:complexType>
		</xs:element>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Scanner"/> 
</xs:complexType>

<xs:complexType name="scanners-type">
   <xs:sequence>
		<xs:element name="scanner" type="scanner-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Scanners"/> 
</xs:complexType>

<xs:element name="scanners" type="scanners-type"/>

</xs:schema>
