<?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:ps="http://www.volby.cz/ps/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.volby.cz/ps/" xmlns="http://www.w3.org/2001/XMLSchema">
  <element name="VYSLEDKY_KANDID">
    <annotation>
      <documentation>Výsledky voleb do Poslanecké sněmovny Parlamentu ČR - preferenční hlasy pro jednotlivé kandidáty (pro možnost průběžného výpočtu složení PS PČR)</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element maxOccurs="14" ref="ps:KRAJ">
          <annotation>
            <documentation>Volební kraj</documentation>
          </annotation>
        </element>
      </sequence>
      <attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required" />
    </complexType>
  </element>
  <element name="KRAJ">
    <annotation>
      <documentation>Volební kraj</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element ref="ps:UCAST" />
        <element ref="ps:STRANY">
          <annotation>
            <documentation>Kandidátní listiny do PS PČR - za volební kraj</documentation>
          </annotation>
        </element>
        <element ref="ps:KANDIDATI">
          <annotation>
            <documentation>Kandidáti do v rámci volebního kraje</documentation>
          </annotation>
        </element>
      </sequence>
      <attribute name="CIS_KRAJ" use="required">
        <simpleType>
          <restriction base="decimal">
            <minInclusive value="1" />
            <maxInclusive value="14" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="NAZ_KRAJ" use="required">
        <simpleType>
          <restriction base="string">
            <maxLength value="20" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="STRANY">
    <annotation>
      <documentation>Kandidátní listiny</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element minOccurs="0" maxOccurs="unbounded" ref="ps:STRANA">
          <annotation>
            <documentation>Hlasy pro jednotlivé kandidátní listiny (jen strany s hlasy)</documentation>
          </annotation>
        </element>
      </sequence>
    </complexType>
  </element>
  <element name="KANDIDATI">
    <annotation>
      <documentation>Kandidáti</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element minOccurs="0" maxOccurs="unbounded" ref="ps:KANDIDAT">
          <annotation>
            <documentation>Preferenční hlasy pro jednotlivé kandidáty (jen kandidáti s preferenčními hlasy)</documentation>
          </annotation>
        </element>
      </sequence>
    </complexType>
  </element>
  <element name="STRANA">
    <annotation>
      <documentation>Hlasy pro jednotlivé kandidátní listiny</documentation>
    </annotation>
    <complexType>
      <attribute name="KSTRANA" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="POC_HLASU" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="9" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="KANDIDAT">
    <annotation>
      <documentation>Preferenční hlasy pro kandidáta</documentation>
    </annotation>
    <complexType>
      <attribute name="KSTRANA" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PORCISLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="10" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="UCAST">
    <annotation>
      <documentation>Volební účast</documentation>
    </annotation>
    <complexType>
      <attribute name="OKRSKY_CELKEM" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="OKRSKY_ZPRAC" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="OKRSKY_ZPRAC_PROC" use="required">
        <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>
      <attribute name="PLATNE_HLASY_PROC" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
</schema>