<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns="http://schemas.gov.sk/form/30416094.PRIHLASKA_NA_SKUSKU_ADR_OS_VODIC.sk/2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.gov.sk/form/30416094.PRIHLASKA_NA_SKUSKU_ADR_OS_VODIC.sk/2.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="RegistrationsForExamsADRDriver">
    <xs:annotation>
      <xs:documentation>Comment describing your root element</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="TrainingOrganization" type="CodelistItemCType" />
        <xs:element name="Applicant">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PersonData">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PhysicalPerson">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="PersonName">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="GivenName" type="StringMax255ReqType" maxOccurs="5" />
                                <xs:element name="FamilyName" type="StringMax255ReqType" maxOccurs="5" />
                                <xs:element name="Affix" type="AffixXsdType" minOccurs="0" maxOccurs="10" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Birth">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="DateOfBirth" type="xs:date" />
                                <xs:element name="PlaceOfBirth" minOccurs="0">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="PhysicalAddress" minOccurs="0">
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="Municipality" type="HybridCodelistCType" minOccurs="0" />
                                          </xs:sequence>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Citizenship" type="CodelistItemCType" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="PhysicalAddress">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Country" type="CodelistItemCType" />
                          <xs:element name="Region" type="HybridCodelistCType" />
                          <xs:element name="County" type="HybridCodelistCType" />
                          <xs:element name="Municipality" type="HybridCodelistCType" />
                          <xs:element name="StreetName" type="StringMax100ReqType" />
                          <xs:element name="BuildingNumber" type="ldt_Orientacne_cislo" minOccurs="0" />
                          <xs:element name="PropertyRegistrationNumber" type="ldt_PropertyRegistration" minOccurs="0" />
                          <xs:element name="DeliveryAddress">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="PostalCode" type="ldt_PSC" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="TelephoneAddress" minOccurs="0" maxOccurs="5">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TelephoneType" type="CodelistItemCType" minOccurs="0" />
                          <xs:element name="Number" minOccurs="0">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="FormattedNumber" type="ldt_TelephoneOrFax" minOccurs="0" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="InternetAddress" type="EmailOrWebAddressType" minOccurs="0" maxOccurs="2" />
                    <xs:element name="MailingAddress" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="PhysicalAddress">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Country" type="CodelistItemCType" />
                                <xs:element name="Region" type="HybridCodelistCType" />
                                <xs:element name="County" type="HybridCodelistCType" />
                                <xs:element name="Municipality" type="HybridCodelistCType" />
                                <xs:element name="StreetName" type="StringMax100ReqType" />
                                <xs:element name="BuildingNumber" type="ldt_Orientacne_cislo" minOccurs="0" />
                                <xs:element name="PropertyRegistrationNumber" type="ldt_PropertyRegistration" minOccurs="0" />
                                <xs:element name="DeliveryAddress">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="PostalCode" type="ldt_PSC" />
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="CodelistCType">
    <xs:sequence>
      <xs:element name="CodelistCode" type="StringMax100ReqType" />
      <xs:element name="CodelistItem">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ItemCode" type="StringMax255ReqType" />
            <xs:element name="ItemName">
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="StringMax2047ReqType">
                    <xs:attribute name="Language" type="NonEmptyString3Type" use="required" />
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DeliveryAddressType">
    <xs:sequence>
      <xs:element name="PostalCode" type="ldt_PSC" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HybridCodelistCType">
    <xs:choice>
      <xs:element name="NonCodelistData" type="StringMax2047ReqType" />
      <xs:element name="Codelist" type="CodelistCType" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="CodelistItemCType">
    <xs:sequence>
      <xs:element name="Codelist" type="CodelistCType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EmailOrWebAddressType">
    <xs:sequence>
      <xs:element name="Address" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Adresa (D.1.5.1)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:anyURI">
            <xs:maxLength value="255" />
            <xs:pattern value="(mailto:(.)+@(.)+)|http(s)?://(.)+" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="IDType">
    <xs:sequence>
      <xs:element name="IdentifierType" type="CodelistItemCType">
        <xs:annotation>
          <xs:documentation>Typ identifikátora (D.1.6.1) ŠÚSR 4001</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdentifierValue">
        <xs:annotation>
          <xs:documentation>Hodnota identifikátora (D.1.6.2)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="StringMax2047ReqType">
            <xs:pattern value="|\d{8}" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AffixXsdType">
    <xs:complexContent>
      <xs:extension base="CodelistItemCType">
        <xs:attribute name="type" type="AffixType" fixed="qualification" />
        <xs:attribute name="position" type="AffixPosition" />
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:simpleType name="ldt_Orientacne_cislo">
    <xs:restriction base="xs:string">
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ldt_PropertyRegistration">
    <xs:restriction base="xs:string">
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ldt_TelephoneOrFax">
    <xs:restriction base="xs:string">
      <xs:maxLength value="20" />
      <xs:pattern value="|(\+|%2b|00)[0-9 ]+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ldt_PSC">
    <xs:restriction base="xs:string">
      <xs:maxLength value="10" />
      <xs:minLength value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AnyUriMax255RegOptType">
    <xs:restriction base="xs:anyURI">
      <xs:maxLength value="255" />
      <xs:pattern value="[\w-]+@([\w-]+\.)+[\w-]+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="StringMax1023ReqType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="1023" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AffixPosition">
    <xs:restriction base="xs:string">
      <xs:enumeration value="prefix" />
      <xs:enumeration value="postfix" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AffixType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="aristocraticTitle" />
      <xs:enumeration value="formOfAddress" />
      <xs:enumeration value="generation" />
      <xs:enumeration value="qualification" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NonEmptyStringType">
    <xs:annotation>
      <xs:documentation>Text s minimalnou dlzkou 1 znak</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NonEmptyString3Type">
    <xs:annotation>
      <xs:documentation>Text s obmedzenim na 3 znaky</xs:documentation>
    </xs:annotation>
    <xs:restriction base="NonEmptyStringType">
      <xs:maxLength value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="StringMax255ReqType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="StringMax255OptType">
    <xs:restriction base="xs:string">
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="StringMax100ReqType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="100" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="StringMax2047ReqType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="2047" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>