<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.3.780 (http://www.liquid-technologies.com)-->
<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Martin Matejka (BIOS Ltd.) -->
<schema xmlns:pe="http://www.volby.cz/prezident/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.volby.cz/prezident/" xmlns="http://www.w3.org/2001/XMLSchema">
  <element name="VYSLEDKY">
    <annotation>
      <documentation>Výsledek volby prezidenta ČR</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element ref="pe:CR" />
      </sequence>
      <attribute name="DATUM_CAS_GENEROVANI" type="dateTime" use="required" />
    </complexType>
  </element>
  <element name="CR">
    <annotation>
      <documentation>Výsledek volby za ČR</documentation>
    </annotation>
    <complexType>
      <sequence>
        <element maxOccurs="unbounded" ref="pe:KANDIDAT" />
        <element maxOccurs="2" ref="pe:UCAST">
          <annotation>
            <documentation>Volební účast za jednotlivá kola volby</documentation>
          </annotation>
        </element>
      </sequence>
    </complexType>
  </element>
  <element name="KANDIDAT">
    <annotation>
      <documentation>Informace o kandidátovi</documentation>
    </annotation>
    <complexType>
      <attribute name="PORADOVE_CISLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <minInclusive value="1" />
            <maxInclusive value="20" />
          </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_1KOLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="7" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY_PROC_1KOLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ZVOLEN_1KOLO" use="optional">
        <simpleType>
          <restriction base="string">
            <pattern value="ZVOLEN" />
            <pattern value="NEZVOLEN" />
            <pattern value="2.KOLO" />
            <pattern value="ODSTOUPIL" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY_2KOLO" use="optional">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="7" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="HLASY_PROC_2KOLO" use="optional">
        <simpleType>
          <restriction base="decimal">
            <totalDigits value="5" />
            <fractionDigits value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <attribute name="ZVOLEN_2KOLO" use="optional">
        <simpleType>
          <restriction base="string">
            <pattern value="ZVOLEN" />
            <pattern value="NEZVOLEN" />
          </restriction>
        </simpleType>
      </attribute>
    </complexType>
  </element>
  <element name="UCAST">
    <annotation>
      <documentation>Volební účast</documentation>
    </annotation>
    <complexType>
      <attribute name="KOLO" use="required">
        <simpleType>
          <restriction base="decimal">
            <pattern value="1" />
            <pattern value="2" />
          </restriction>
        </simpleType>
      </attribute>
      <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>