<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.2.746 (http://www.liquid-technologies.com)-->
<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Martin Matejka (BIOS Ltd.) -->
<schema xmlns:kv="http://www.volby.cz/kv/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.volby.cz/kv/" xmlns="http://www.w3.org/2001/XMLSchema">
  <element name="VYSLEDKY_OBEC">
    <annotation>
      <documentation>Výsledky voleb do zastupitelstva vybrané obce</documentation>
    </annotation>
    <complexType>
      <choice>
        <element name="CHYBA">
          <annotation>
            <documentation>Informace o chybě při získávání výsledků</documentation>
          </annotation>
        </element>
        <element ref="kv:OBEC">
          <annotation>
            <documentation>Výsledek za vybrané zastupitelstvo</documentation>
          </annotation>
        </element>
      </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 source="Kód zastupitelstva" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="6" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="NAZEVZAST" use="required">
        <annotation>
          <documentation source="Název zastupitelstva" />
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="40" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="OZNAC_TYPU" use="required">
        <annotation>
          <documentation source="Označení typu zastupitelstva (obec nebo městská část/obvod)" />
        </annotation>
        <simpleType>
          <restriction base="string">
            <enumeration value="OBEC" />
            <enumeration value="MCMO" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="VOLENO_ZASTUP" use="required">
        <annotation>
          <documentation source="Počet volených zastupitelů" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="POCET_OBVODU" use="required">
        <annotation>
          <documentation source="Počet volebních obvodů (pokud má zastupitelstvo obvody)" />
        </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>
    </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 source="Počet volených zastupitelů" />
        </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 source="Vylosované číslo strany/kandidátní listiny na hlasovacím lístku" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="3" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="VSTRANA" use="required">
        <annotation>
          <documentation source="Kód volební strany dle číselníku CVS" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="4" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="NAZEV_STRANY" use="required">
        <annotation>
          <documentation source="Název volební strany - kandidátní listiny" />
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="120" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY" use="required">
        <annotation>
          <documentation source="Počet hlasů pro stranu" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="9" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY_PROC" use="required">
        <annotation>
          <documentation source="Procento hlasů pro stranu" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="KANDIDATU_POCET" use="required">
        <annotation>
          <documentation source="Počet kandidátů volební strany" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ZASTUPITELE_POCET" use="required">
        <annotation>
          <documentation source="Počet zvolených zastupitelů za volební stranu" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ZASTUPITELE_PROC" use="required">
        <annotation>
          <documentation source="Procento zastupitelů za volební stranu" />
        </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 source="Celkem volebních okrsků" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="OKRSKY_ZPRAC" use="required">
        <annotation>
          <documentation source="Počet zpracovaných volebních okrsků" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="OKRSKY_ZPRAC_PROC" use="required">
        <annotation>
          <documentation source="Procento zpracovaných volebních okrsků" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ZAPSANI_VOLICI" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="8" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="VYDANE_OBALKY" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="8" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="UCAST_PROC" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ODEVZDANE_OBALKY" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="8" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PLATNE_HLASY" use="required">
        <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 source="Pořadové číslo kandidáta na kandidátní listině/hlasovacím lístku" />
        </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="30" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="TITULPRED" use="required">
        <simpleType>
          <restriction base="string">
            <maxLength value="20" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="TITULZA" use="required">
        <simpleType>
          <restriction base="string">
            <maxLength value="20" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY" use="required">
        <annotation>
          <documentation source="Hlasy pro kandidáta" />
        </annotation>
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="7" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY_PROC" use="required">
        <annotation>
          <documentation source="Procento hlasů pro kandidáta" />
        </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>
</schema>