<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="list">
		<xs:complexType>
			<xs:sequence minOccurs="1" maxOccurs="1">
				<xs:element name="skillTree" minOccurs="1" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence minOccurs="1" maxOccurs="1">
							<xs:element name="skill" minOccurs="1" maxOccurs="unbounded">
								<xs:complexType>
									<xs:sequence minOccurs="1" maxOccurs="1">
										<xs:element name="subClassConditions" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="slot" use="required">
													<xs:simpleType>
														<xs:restriction base="xs:positiveInteger">
															<xs:minInclusive value="1" />
															<xs:maxInclusive value="3" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="lvl" use="required">
													<xs:simpleType>
														<xs:restriction base="xs:positiveInteger">
															<xs:minInclusive value="1" />
															<xs:maxInclusive value="85" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="socialClass" minOccurs="0" maxOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:token">
													<xs:enumeration value="VAGABOND" />
													<xs:enumeration value="VASSAL" />
													<xs:enumeration value="APPRENTICE" />
													<xs:enumeration value="HEIR" />
													<xs:enumeration value="KNIGHT" />
													<xs:enumeration value="ELDER" />
													<xs:enumeration value="BARON" />
													<xs:enumeration value="VISCOUNT" />
													<xs:enumeration value="COUNT" />
													<xs:enumeration value="MARQUIS" />
													<xs:enumeration value="DUKE" />
													<xs:enumeration value="GRAND_DUKE" />
													<xs:enumeration value="DISTINGUISHED_KING" />
													<xs:enumeration value="EMPEROR" />
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="residenceId" minOccurs="0" maxOccurs="unbounded">
											<xs:simpleType>
												<xs:restriction base="xs:positiveInteger">
													<xs:minInclusive value="1" />
													<xs:maxInclusive value="200" />
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="race" minOccurs="0" maxOccurs="unbounded">
											<xs:simpleType>
												<xs:restriction base="xs:token">
													<xs:enumeration value="HUMAN" />
													<xs:enumeration value="ELF" />
													<xs:enumeration value="DARK_ELF" />
													<xs:enumeration value="ORC" />
													<xs:enumeration value="DWARF" />
													<xs:enumeration value="KAMAEL" />
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="preRequisiteSkill" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="id" type="xs:positiveInteger" use="required" />
												<xs:attribute name="lvl" type="xs:positiveInteger" use="required" />
											</xs:complexType>
										</xs:element>
										<xs:element name="item" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="id" type="xs:positiveInteger" use="required" />
												<xs:attribute name="count" type="xs:positiveInteger" use="required" />
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="autoGet" type="xs:boolean" />
									<xs:attribute name="getLevel">
										<xs:simpleType>
											<xs:restriction base="xs:positiveInteger">
												<xs:minInclusive value="1" />
												<xs:maxInclusive value="85" />
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="learnedByFS" type="xs:boolean" />
									<xs:attribute name="learnedByNpc" type="xs:boolean" />
									<xs:attribute name="levelUpSp" type="xs:positiveInteger" />
									<xs:attribute name="residenceSkill" type="xs:boolean" />
									<xs:attribute name="skillId" type="xs:positiveInteger" use="required" />
									<xs:attribute name="skillLvl" type="xs:positiveInteger" use="required" />
									<xs:attribute name="skillName" type="xs:normalizedString" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="classId">
							<xs:simpleType>
								<xs:restriction base="xs:nonNegativeInteger">
									<xs:minInclusive value="0" />
									<xs:maxInclusive value="136" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="parentClassId">
							<xs:simpleType>
								<xs:restriction base="xs:nonNegativeInteger">
									<xs:minInclusive value="0" />
									<xs:maxInclusive value="136" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="type" use="required">
							<xs:simpleType>
								<xs:restriction base="xs:token">
									<xs:enumeration value="classSkillTree" />
									<xs:enumeration value="collectSkillTree" />
									<xs:enumeration value="fishingSkillTree" />
									<xs:enumeration value="gameMasterAuraSkillTree" />
									<xs:enumeration value="gameMasterSkillTree" />
									<xs:enumeration value="heroSkillTree" />
									<xs:enumeration value="nobleSkillTree" />
									<xs:enumeration value="pledgeSkillTree" />
									<xs:enumeration value="subClassSkillTree" />
									<xs:enumeration value="subPledgeSkillTree" />
									<xs:enumeration value="transferSkillTree" />
									<xs:enumeration value="transformSkillTree" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>