<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> 

<xs:complexType name="humanity-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="max-trade-route-distance" type="xs:integer" minOccurs="0"/>
		<xs:element name="max-solar-system-trade-routes" type="xs:integer" minOccurs="0"/>
		<xs:element name="trade-route-bonus" 		type="xs:decimal" 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: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.Humanity"/> 
</xs:complexType>

<xs:complexType name="modules-type">
   <xs:sequence>
		<xs:element name="humanity" type="humanity-type" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
	<xs:attribute name="class" type="xs:string" fixed="mot.common.technology.Humanities"/> 
</xs:complexType>

<xs:element name="humanities" type="modules-type"/>

</xs:schema>