<?xml version="1.0" encoding="utf-8"?>
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.3.780 (http://www.liquid-technologies.com)-->
<schema xmlns:kv="http://www.volby.cz/kv/" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.volby.cz/kv/" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<element name="VYSLEDKY_OBCE">
		<annotation>
			<documentation>Výsledky voleb do zastupitelstev obcí - sumy za zastupitelstva aktualizované od poslední dávky</documentation>
		</annotation>
		<complexType>
			<choice>
				<sequence>
					<element ref="kv: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="kv:DAVKA"/>
					<element ref="kv:OBEC" maxOccurs="unbounded">
						<annotation>
							<documentation>Výsledky za obce</documentation>
						</annotation>
					</element>
				</sequence>
			</choice>
			<attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required"/>
		</complexType>
	</element>
	<element name="OBEC">
		<annotation>
			<documentation>Výsledky za zastupitelstvo obce,městysu,města,statutár.města,hl.m.Prahy</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="kv:VYSLEDEK" />
				<element minOccurs="0" maxOccurs="unbounded" ref="kv:OBVOD" />
			</sequence>
			<attribute name="KODZASTUP" use="required">
				<annotation>
					<documentation>Kód zastupitelstva</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="6" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="NAZEVZAST" use="required">
				<annotation>
					<documentation>Název zastupitelstva</documentation>
				</annotation>
				<simpleType>
					<restriction base="string">
						<maxLength value="40" />
					</restriction>
				</simpleType>
			</attribute>
			<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="VOLENO_ZASTUP" use="required">
				<annotation>
					<documentation>Počet volených zastupitelů</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="POCET_OBVODU" use="required">
				<annotation>
					<documentation>Počet volebních obvodů (pokud má zastupitelstvo obvody)</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="JE_SPOCTENO" type="boolean" use="required">
				<annotation>
					<documentation>Je vypočten výsledek (rozděleny mandáty) za vybrané zastupitelstvo</documentation>
				</annotation>
			</attribute>
			<attribute name="SPOCTENO_OPAKOVANE" type="boolean">
				<annotation>
					<documentation>Výsledek spočten opakovaně, např. při opravě dat za volební okrsek daného zastupitestva</documentation>
				</annotation>
			</attribute>
		</complexType>
	</element>
	<element name="OBVOD">
		<annotation>
			<documentation>Výsledky za zastupitelstvo městské části nebo městského obvodu</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="kv:VYSLEDEK" />
			</sequence>
			<attribute name="CIS_OBVODU" use="required">
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="VOLENO_ZASTUP" use="required">
				<annotation>
					<documentation>Počet volených zastupitelů</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="VOLEBNI_STRANA">
		<annotation>
			<documentation>Souhrnné výsledky za volební stranu</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element minOccurs="0" maxOccurs="unbounded" ref="kv:ZASTUPITEL" />
			</sequence>
			<attribute name="POR_STR_HLAS_LIST" use="required">
				<annotation>
					<documentation>Vylosované číslo strany/kandidátní listiny na hlasovacím lístku</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="3" />
					</restriction>
				</simpleType>
			</attribute>
			<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="9" />
					</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="KANDIDATU_POCET" use="required">
				<annotation>
					<documentation>Počet kandidátů volební strany</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELE_POCET" use="required">
				<annotation>
					<documentation>Počet zvolených zastupitelů za volební stranu</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="ZASTUPITELE_PROC" use="required">
				<annotation>
					<documentation>Procento 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="ZASTUPITEL">
		<annotation>
			<documentation>Zvolený zastupitel</documentation>
		</annotation>
		<complexType>
			<attribute name="PORADOVE_CISLO" use="required">
				<annotation>
					<documentation>Pořadové číslo kandidáta na kandidátní listině/hlasovacím lístku</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="JMENO" use="required">
				<simpleType>
					<restriction base="string">
						<maxLength value="40" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="PRIJMENI" use="required">
				<simpleType>
					<restriction base="string">
						<maxLength value="40" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="TITULPRED" use="required">
				<simpleType>
					<restriction base="string">
						<maxLength value="25" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="TITULZA" use="required">
				<simpleType>
					<restriction base="string">
						<maxLength value="25" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="HLASY" use="required">
				<annotation>
					<documentation>Hlasy pro kandidáta</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="7" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="HLASY_PROC" use="required">
				<annotation>
					<documentation>Procento hlasů pro kandidáta</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5" />
						<fractionDigits value="2" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
	<element name="VYSLEDEK">
		<annotation>
			<documentation>Výsledek za zastupitelstvo obce nebo obvod</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element ref="kv:UCAST">
					<annotation>
						<documentation>Volební účast</documentation>
					</annotation>
				</element>
				<element minOccurs="0" maxOccurs="unbounded" ref="kv:VOLEBNI_STRANA">
					<annotation>
						<documentation>Výsledky za volební stranu (pokud nemá zastupitelstvo obvody)</documentation>
					</annotation>
				</element>
			</sequence>
		</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>
	<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="PORADI_DAVKY" use="required">
				<simpleType>
					<restriction base="decimal">
						<minInclusive value="1"/>
						<totalDigits value="5"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="POCET_OBCI" use="required">
				<annotation>
					<documentation>Počet obcí v dávce</documentation>
				</annotation>
				<simpleType>
					<restriction base="decimal">
						<totalDigits value="5"/>
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
</schema>
