<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="module-type">
   <xs:sequence>
		<xs:element name="name" 			type="xs:string"/>
		<xs:element name="description"			type="xs:string" minOccurs="0"/>
		<xs:element name="image" 			type="xs:string" minOccurs="0"/>
		<xs:element name="population" 			type="xs:integer" minOccurs="0"/>
		<xs:element name="production" 			type="xs:integer" minOccurs="0"/>
		<xs:element name="research" 			type="xs:integer" minOccurs="0"/>
		<xs:element name="qty-fighter-bays" 		type="xs:integer" minOccurs="0"/>
		<xs:element name="qty-sentinels" 		type="xs:integer" minOccurs="0"/>
		<xs:element name="on-space-station" 		type="xs:string"  minOccurs="0"/>
		<xs:element name="on-battle-station" 		type="xs:string"  minOccurs="0"/>
		<xs:element name="on-outpost" 			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="group" 			type="xs:string" minOccurs="0"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Module"/> 
</xs:complexType>

<xs:complexType name="modules-type">
   <xs:sequence>
		<xs:element name="module" type="module-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Modules"/> 
</xs:complexType>

<xs:element name="modules" type="modules-type"/>

</xs:schema>