<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.2.746 (http://www.liquid-technologies.com)-->
<schema xmlns:se="http://www.volby.cz/senat/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.volby.cz/senat/" xmlns="http://www.w3.org/2001/XMLSchema">
	<element name="VYSLEDKY_OKRSKY">
		<annotation>
			<documentation>Výsledky voleb do Senátu Parlamentu ČR - volební okrsky</documentation>
		</annotation>
		<complexType>
			<choice>
				<sequence>
					<element ref="se:CHYBA">
						<annotation>
							<documentation>Informace o chybě při získávání výsledků (neexistující dávka)</documentation>
						</annotation>
					</element>
				</sequence>
				<sequence>
					<element ref="se:DAVKA" />
					<element maxOccurs="unbounded" ref="se:OKRSEK">
						<annotation>
							<documentation>Výsledky za okrsky</documentation>
						</annotation>
					</element>
				</sequence>
			</choice>
			<attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required" />
		</complexType>
	</element>
	<element name="OKRSEK">
		<annotation>
			<documentation>Výsledky za volební okrsek</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="se:UCAST_OKRSEK" />
				<element minOccurs="0" maxOccurs="unbounded" ref="se:HLASY_OKRSEK" />
			</sequence>
			<attribute name="CIS_OBEC" use="required">
				<annotation>
					<documentation>Kód obce</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal" />
				</simpleType>
			</attribute>
			<attribute name="CIS_OKRSEK" use="required">
				<annotation>
					<documentation>Číslo okrsku v rámci obce</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="CIS_OBVOD" use="required">
				<annotation>
					<documentation>Číslo volebního obvodu (1 až 81)</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<minInclusive value="1" />
						<maxInclusive value="81" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="PORADI_ZPRAC" use="required">
				<annotation>
					<documentation>Pořadí zpracování okrsku - unikátní v rámci celého zpracování</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="DATUM_CAS_ZPRAC" type="dateTime" use="required" />
			<attribute name="OPAKOVANE" type="boolean" use="required" />
		</complexType>
	</element>
	<element name="UCAST_OKRSEK">
		<annotation>
			<documentation>Volební účast ve volebním okrsku</documentation>
		</annotation>
		<complexType>
			<attribute name="ZAPSANI_VOLICI" use="required">
				<annotation>
					<documentation>Počet osob, zapsaných do výpisu ze stálého a zvláštního seznamu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="VYDANE_OBALKY" use="required">
				<annotation>
					<documentation>Počet voličů, kterým byly vydány úřední obálky</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="VOLICSKE_PRUKAZY" use="required">
				<annotation>
					<documentation>Počet voličů, kteří hlasovali na voličský průkaz</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>	
			<attribute name="ODEVZDANE_OBALKY" use="required">
				<annotation>
					<documentation>Počet odevzdaných úředních obálek</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="PLATNE_HLASY" use="required">
				<annotation>
					<documentation>Počet platných hlasů ve volebním okrsku celkem</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="HLASY_OKRSEK">
		<annotation>
			<documentation>Výsledky za kandidáty ve volebním okrsku</documentation>
		</annotation>
		<complexType>
			<attribute name="PORADOVE_CISLO" use="required">
				<annotation>
					<documentation>Vylosované číslo kandidáta v rámci obvodu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<minInclusive value="1" />
						<maxInclusive value="22" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="HLASY" use="required">
				<annotation>
					<documentation>Počet hlasů, které kandidát získal</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="7" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="CHYBA">
		<annotation>
			<documentation>Informace o chybě při získávání výsledků</documentation>
		</annotation>
		<complexType>
			<simpleContent>
				<extension base="string">
					<attribute name="KOD_CHYBY" use="required">
						<simpleType>
							<restriction base="decimal">
								<totalDigits value="4" />
							</restriction>
						</simpleType>
					</attribute>
				</extension>
			</simpleContent>
		</complexType>
	</element>
	<element name="DAVKA">
		<annotation>
			<documentation>Informace o dávce dat</documentation>
		</annotation>
		<complexType>
			<attribute name="DATUMVOLEB" use="required">
				<annotation>
					<documentation>Datum prvního dne voleb ve formátu RRRRMMYY</documentation>
				</annotation>
				<simpleType>
					<restriction base="string">
						<maxLength value="8" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="KOLO" use="required">
				<annotation>
					<documentation>Číslo kola voleb (1 nebo 2)</documentation>
				</annotation>
				<simpleType>
					<restriction base="int">
						<enumeration value="1" />
						<enumeration value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="PORADI_DAVKY" use="required">
				<annotation>
					<documentation>Pořadí dávky se zpracovanými okrsky</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<minInclusive value="1" />
						<totalDigits value="5" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="OKRSKY_DAVKA" use="required">
				<annotation>
					<documentation>Počet okrsků v dávce</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="OKRSKY_CELKEM" use="required">
				<annotation>
					<documentation>Celkový počet zpracovávaných okrsků</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="OKRSKY_ZPRAC" use="required">
				<annotation>
					<documentation>Celkový počet už zpracovaných okrsků</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
</schema>