<?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="http://www.w3.org/2001/XMLSchema" xmlns:kv="http://www.volby.cz/kv/" targetNamespace="http://www.volby.cz/kv/" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<element name="VYSLEDKY">
		<annotation>
			<documentation>Výsledky voleb do zastupitelstev obcí</documentation>
		</annotation>
		<complexType>
			<choice>
				<element ref="kv:CHYBA"/>
				<element ref="kv:TYP_ZASTUP" maxOccurs="2">
					<annotation>
						<documentation>Souhrnné výsledky za typ voleného zastupitelstva (obec, městská část)</documentation>
					</annotation>
				</element>
			</choice>
			<attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required" />
		</complexType>
	</element>
	<element name="TYP_ZASTUP">
		<annotation>
			<documentation>Typ voleného zastupitelstva (obec, městská část)</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="kv:UCAST">
					<annotation>
						<documentation>Volební účast</documentation>
					</annotation>
				</element>
				<element ref="kv:ZASTUPIT_INFO"/>
				<element ref="kv:VOLEBNI_STRANA" minOccurs="0" maxOccurs="unbounded"/>
			</sequence>
			<attribute name="OZNAC_TYPU" use="required">
				<annotation>
					<documentation>Označení typu zastupitelstva (obec nebo městská část/obvod)</documentation>
				</annotation>
				<simpleType>
					<restriction base="string">
						<enumeration value="OBEC"/>
						<enumeration value="MCMO"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="NAZ_TYPU" use="required">
				<annotation>
					<documentation>Název typu zastupitelstva</documentation>
				</annotation>
				<simpleType>
					<restriction base="string">
						<maxLength value="60"/>
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="VOLEBNI_STRANA">
		<annotation>
			<documentation>Souhrnné výsledky za volební stranu</documentation>
		</annotation>
		<complexType>
			<attribute name="VSTRANA" use="required">
				<annotation>
					<documentation>Kód volební strany dle číselníku CVS</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="4"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="NAZEV_STRANY" use="required">
				<annotation>
					<documentation>Název volební strany - kandidátní listiny</documentation>
				</annotation>
				<simpleType>
					<restriction base="string">
						<maxLength value="120"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="HLASY" use="required">
				<annotation>
					<documentation>Počet hlasů pro stranu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="HLASY_PROC" use="required">
				<annotation>
					<documentation>Procento hlasů pro stranu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
						<fractionDigits value="2"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELE_POCET" use="required">
				<annotation>
					<documentation>Počet zvolených zastupitelů pro volební stranu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="9"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELE_PROC" use="required">
				<annotation>
					<documentation>Procentro zastupitelů za volební stranu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
						<fractionDigits value="2"/>
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="UCAST">
		<annotation>
			<documentation>Volební účast</documentation>
		</annotation>
		<complexType>
			<attribute name="OKRSKY_CELKEM" use="required">
				<annotation>
					<documentation>Počet volebních okrsků celkem</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="OKRSKY_ZPRAC" use="required">
				<annotation>
					<documentation>Počet volebních okrsků se zpracovanými výsledky voleb</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="OKRSKY_ZPRAC_PROC" use="required">
				<annotation>
					<documentation>Procento volebních okrsků se zpracovanými výsledky voleb</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
						<fractionDigits value="2"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZAPSANI_VOLICI" use="required">
				<annotation>
					<documentation>Počet osob zapsaných do výpisu ze seznamu voličů a jeho dodatku celkem</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="UCAST_PROC" use="required">
				<annotation>
					<documentation>Volební účast v %</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
						<fractionDigits value="2"/>
					</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_LISTKY" use="required">
				<annotation>
					<documentation>Počet hlasovacích lístků, které jsou platným hlasem voliče</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 pro všechny volební strany)</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="8"/>
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="ZASTUPIT_INFO">
		<annotation>
			<documentation>Informace o zastupitelstvech</documentation>
		</annotation>
		<complexType>
			<attribute name="ZASTUPITELSTVA_CELKEM" use="required">
				<annotation>
					<documentation>Celkový počet zastupitelstev, ve kterých se konají volby</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="4"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELSTVA_ZVOLENA" use="required">
				<annotation>
					<documentation>Počet zastupitelstev, ve kterých byla zvolena zastupitelstva</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="4"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELE_ZVOLENI" use="required">
				<annotation>
					<documentation>Počet zvolených zastupitelů celkem</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="6"/>
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="CHYBA">
		<annotation>
			<documentation>Informace o chybě při získávání výsledků</documentation>
		</annotation>
		<simpleType>
			<restriction base="string">
				<maxLength value="100"/>
			</restriction>
		</simpleType>
	</element>
</schema>
