<?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:kz="http://www.w3.org/namespace/" targetNamespace="http://www.w3.org/namespace/" xmlns="http://www.w3.org/2001/XMLSchema">
  <element name="VYSLEDKY">
    <annotation>
      <documentation>Výsledky voleb do zastupitelstev krajů</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element maxOccurs="13" ref="kz:KRZAST">
          <annotation>
            <documentation>Výsledky za zastupitelstvo kraje</documentation>
          </annotation>
        </element>
        <element ref="kz:CR" />
      </sequence>
      <attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required" />
    </complexType>
  </element>
  <element name="KRZAST">
    <annotation>
      <documentation>Krajské zastupitelstvo</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element ref="kz:UCAST">
          <annotation>
            <documentation>Volební účast</documentation>
          </annotation>
        </element>
        <element maxOccurs="unbounded" ref="kz:STRANA" />
      </sequence>
      <attribute name="CIS_KRZAST" use="required">
        <simpleType>
          <restriction base="decimal">
            <minInclusive value="1" />
            <maxInclusive value="13" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="NAZ_KRZAST" use="required">
        <simpleType>
          <restriction base="string">
            <maxLength value="20" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="POCMANDATU" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="STRANA">
    <annotation>
      <documentation>Kandidátní listina</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element ref="kz:HODNOTY_STRANA" />
        <element minOccurs="0" maxOccurs="unbounded" ref="kz:ZASTUPITEL" />
      </sequence>
      <attribute name="KSTRANA" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="NAZ_STR" use="required">
        <simpleType>
          <restriction base="string">
            <maxLength value="50" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="VSTRANA" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="4" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="CR">
    <annotation>
      <documentation>Celkové výsledky za ČR</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element ref="kz:UCAST">
          <annotation>
            <documentation>Volební účast</documentation>
          </annotation>
        </element>
      </sequence>
    </complexType>
  </element>
  <element name="HODNOTY_STRANA">
    <annotation>
      <documentation>Výsledky za kandidátní listinu</documentation>
    </annotation>
    <complexType>
      <attribute name="HLASY" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="9" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PROC_HLASU" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="MANDATY" use="optional">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PROC_MANDATU" use="optional">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="ZASTUPITEL">
    <annotation>
      <documentation>Informace o zvoleném zastupiteli kraje</documentation>
    </annotation>
    <complexType>
      <attribute name="PORADOVE_CISLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <minInclusive value="1" />
            <maxInclusive value="70" />
          </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="15" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PREDNOSTNI_HLASY" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="10" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="PREDNOSTNI_HLASY_PROC" use="required">
        <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">
        <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>