<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2019 rel. 3 sp1 (http://www.altova.com) by IZBA ADMINISTRACJI SKARBOWEJ W POZNANIU (IZBA ADMINISTRACJI SKARBOWEJ W POZNANIU) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" xmlns:ek="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:annotation>
    <xs:documentation>
      ================Typy podstawowe - zweryfikowane
    </xs:documentation>
  </xs:annotation>
  <xs:complexType name="AdresBezDanychKomPocztaWymaganaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresBezDanychKomunikacyjnychType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresBezDanychKomunikacyjnychType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresBezDanychKomunikAllRequiredType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresBezDanychKomunikRequiredType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresBezTerytType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon podstawowy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R10
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="adresEPUAP" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Adres skrytki ePUAP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Adres w formacie /login_ePUAP/nazwa_skrytki
        </xs:documentation>
        <xs:documentation source="rule">
          R16
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresKodPocztowyRequiredType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresKodPocztowyRequiredType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon podstawowy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefonSMS" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon do powiadomień SMS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="fax" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Fax
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R10
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="adresEPUAP" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Adres skrytki ePUAP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Adres w formacie /login_ePUAP/nazwa_skrytki
        </xs:documentation>
        <xs:documentation source="rule">
          R16
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon podstawowy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefonSMS" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon do powiadomień SMS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="fax" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Fax
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R10
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="adresEPUAP" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Adres skrytki ePUAP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Adres w formacie /login_ePUAP/nazwa_skrytki
        </xs:documentation>
        <xs:documentation source="rule">
          R16
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresTypePL">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod województwa
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT województwa.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wojewodztwoNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Województwo
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa województwa.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod powiatu
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT powiatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="powiatNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Powiat
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa powiatu.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod gminy
        </xs:documentation>
        <xs:documentation source="list">
          501A
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R3, R4
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT gminy.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="gminaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Gmina
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa gminy.
        </xs:documentation>
        <xs:documentation source="rule">
          R2
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod miejscowości
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R6
        </xs:documentation>
        <xs:documentation source="list">
          502A
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod TERYT miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="7"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="56"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poczta" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poczta
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="skrytkaPocztowa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Skrytka pocztowa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod ulicy
        </xs:documentation>
        <xs:documentation source="rule">
          R2, R8
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa ulicy. W przypadku adresu zagranicznego zawiera również, gdzie zasadne, numer domu i lokalu.
        </xs:documentation>
        <xs:documentation source="rule">
          R19, R20
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="100"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDomu" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer domu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer domu.Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrLokalu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer lokalu
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stosowany tylko dla adresów polskich.
        </xs:documentation>
        <xs:documentation source="rule">
          R108
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon podstawowy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefonSMS" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon do powiadomień SMS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="fax" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Fax
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R10
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="adresEPUAP" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Adres skrytki ePUAP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Adres w formacie /login_ePUAP/nazwa_skrytki
        </xs:documentation>
        <xs:documentation source="rule">
          R16
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdresZalacznikAType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Adres
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="krajKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj
        </xs:documentation>
        <xs:documentation>
          Kod kraju
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj - nazwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="miejscowoscNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Miejscowość
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa miejscowości.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodPocztowy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod pocztowy
        </xs:documentation>
        <xs:documentation source="rule">
          R9
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="9"/>
          <xs:whiteSpace value="collapse"/>
          <xs:minLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ulicaNumer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ulica, numer domu i numer lokalu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:whiteSpace value="collapse"/>
          <xs:minLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="DaneEMCS">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Komunikat do EMCS
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="C4037" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            4037. Pozycja słownika złożonego 4037.
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            4037. Complex code list position 4037.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Reprezentanci" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Reprezentanci.
                </xs:documentation>
                <xs:documentation source="list">
                  4000V1
                </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="imie" use="required">
                  <xs:annotation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Imię. Imię.
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="0"/>
                      <xs:maxLength value="60"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="nazwisko" use="required">
                  <xs:annotation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Nazwisko. Nazwisko.
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="0"/>
                      <xs:maxLength value="90"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="idsiscROF" use="required">
                  <xs:annotation>
                    <xs:documentation source="doc" xml:lang="pl">
                      IdSISC_ROF. Identyfikator SISC reprezentanta będącego osobą fizyczną.
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="0"/>
                      <xs:maxLength value="17"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="domyslnySposobKomunikacjiEmail" type="xs:boolean" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Domyślny sposób komunikacji E-mail
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="domyslnySposobKomunikacjiWebSer" type="xs:boolean">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Domyślny sposób komunikacji Webservice
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="podstawowyAdresEmail" use="optional">
            <xs:annotation>
              <xs:documentation source="doc" xml:lang="pl">
                Podstawowy adres email. Podstawowy adres poczty elektronicznej (e-mail).
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="0"/>
                <xs:maxLength value="50"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="adresHTTPSUslugiWebservicePodm" use="optional">
            <xs:annotation>
              <xs:documentation source="doc" xml:lang="pl">
                Adres HTTPS usługi webservice podm. Adres HTTPS usługi webservice udostępnianej przez podmiot.
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="0"/>
                <xs:maxLength value="300"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DecyzjaCelnaBezDatyZakonczeniaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Decyzja - numer i rodzaj (D.1/1, D.1/4, D.4/6).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji  ( D 4/6).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej lub zmienionej decyzji
        </xs:documentation>
        <xs:documentation source="list">
          ?
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="DecyzjaCelnaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Decyzja - numer i rodzaj (D.1/1, D.1/4, D.4/6) używana w BOI (Wiążąca informacja o pochodzeniu)
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji  ( D 4/6,  D.4/7).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="dataZakonczeniaDecyzji" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data zakończenia ważności decyzji (D 4/7). 
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej lub zmienionej decyzji
        </xs:documentation>
        <xs:documentation source="list">
          ?
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="IdentyfikacjaTowarowType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Identyfikacja towarów (D.5/8).
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod identyfikacji towarów
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj środka stosowanego do identyfikacji towarów.
        </xs:documentation>
        <xs:documentation source="list">
          180
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis sposobu identyfikacji towarów
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="IdentyfikacjaTowarow2Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Identyfikacja towarów (D.5/8).
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod identyfikacji towarów
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj środka stosowanego do identyfikacji towarów.
        </xs:documentation>
        <xs:documentation source="list">
          180
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa rodzaju środka stosowanego do identyfikacji towarów.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis sposobu identyfikacji towarów
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="IdentyfikacjaTowarow2Type2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Identyfikacja towarów (D.5/8).
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod identyfikacji towarów
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj środka stosowanego do identyfikacji towarów.
        </xs:documentation>
        <xs:documentation source="list">
          180
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa rodzaju środka stosowanego do identyfikacji towarów.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis sposobu identyfikacji towarów
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2560"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="InformacjaDodatkowaType">
    <xs:annotation>
      <xs:documentation>
        Informacje dodatkowe
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="tekst" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Informacje dodatkowe
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4096"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="KontoBankoweType">
    <xs:annotation>
      <xs:documentation>
        Konto bankowe
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="iban" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Prefix IBAN
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKonta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer rachunku bankowego
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaBanku" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa banku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="80"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="swiftBic" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          SWIFT/BIC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="LokalizacjaMiejsceType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Miejsce przetwarzania; lokalizacja towarów.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LokalizacjaAdres" type="AdresBezDanychKomunikacyjnychType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres lokalizacji.
          </xs:documentation>
          <xs:documentation source="rule">
            R655
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="kodKraju" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju lokalizacji.
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodRodzajuLokalizacji" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju lokalizacji
        </xs:documentation>
        <xs:documentation source="list">
          370
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwalifikatorOznaczenia" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj kodu użytego do identyfikacji lokalizacji.
        </xs:documentation>
        <xs:documentation source="list">
          380
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="identyfikacjaLokalizacji" use="optional">
      <xs:annotation>
        <xs:documentation source="name " xml:lang="pl">
          Identyfikator lokalizacji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator miejsca lokalizacji lub przetwarzania towarów.
        </xs:documentation>
        <xs:documentation source="rule">
          R655
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dodatkowyIdentyfikator" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Dodatkowy identyfikator
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Atrybut stosowany gdy podmiot dysponuje wieloma lokalizacjami w celu wskazania właściwej lokalizacji. Atrybut będzie wykorzystywany w ramach rozwoju systemu AIS w związku z pracami nad Rozporządzeniem Wykonawczym i Delegowanym do Unijnego Kodeksu Celnego (UCC).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="LokalizacjaMiejsceType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Miejsce przetwarzania; lokalizacja towarów.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:choice>
        <!--				<xs:element name="LokalizacjaAdres" type="AdresBezDanychKomunikacyjnychType" minOccurs="0"> -->
        <xs:element name="LokalizacjaAdres" type="AdresBezDanychKomunikacyjnychType2024">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Adres lokalizacji.
            </xs:documentation>
            <xs:documentation source="rule">
              R655
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="LokalizacjaWspolrzedne">
          <xs:complexType>
            <xs:attribute name="identyfikacjaLokalizacji" use="optional"/>
          </xs:complexType>
        </xs:element>
      </xs:choice>
      <xs:element name="OsobaDoKontaktow" type="OsobaFizycznaIdEdecyzjeType2024"/>
    </xs:sequence>
    <xs:attribute name="identyfikacjaLokalizacji" use="optional">
      <xs:annotation>
        <xs:documentation source="name " xml:lang="pl">
          Identyfikator lokalizacji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator miejsca lokalizacji lub przetwarzania towarów.
        </xs:documentation>
        <xs:documentation source="rule">
          R655
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjaLubPostanowienieType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 Decyzja, 2.Postanowienie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiHazardowejNrZezwoleniaOptType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję
          1. Nowe zezwolenie  2 – zmiana zezwolenia 3- cofnięcie zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrDecyzjiZmianaCofniecie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia dla decyzji zmieniających lub cofających. 
        </xs:documentation>
        <xs:documentation source="rule">
          R822
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiHazardowejType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek decyzi zezwoleń hazardowych z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję
          1. nowe zezwolenie  2 – zmiana zezwolenia 3- cofnięcie zezwolenia 4 - cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrDecyzjiZmianaCofniecie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia dla decyzji zmieniających lub cofających. 
        </xs:documentation>
        <xs:documentation source="rule">
          R822
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiHazardZatwierdzenieDHZL01Type">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji z obszaru ordynacjii podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję  1. Nowe 2. Zmiana
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrDecyzjiPierwotnej" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji pierwotnej do której odnosi się decyzja
        </xs:documentation>
        <xs:documentation source="rule">
          R823
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiHazardZatwierdzenieType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji z obszaru ordynacjii podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję  1. Nowe 2. Zmiana
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrDecyzjiZmiana" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia dla decyzji zmieniających
        </xs:documentation>
        <xs:documentation source="rule">
          R823
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiHazardZmianaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję
          1. nowa 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrRozstrzygniecia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer rozstrzygnięcia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataRozstrzygniecia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania rozstrzygnięcia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiNegatywnej2Type">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji negatywnych prosty (nowy)
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stała wartość = CL001C zawężony do UCS
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl"/>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiNegatywnejType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1. Decyzja odmowna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl"/>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji wydanej w postępowaniu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiNiepozBezTypowDecyzjiType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy, której dotyczy wydana decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiNiepozBezTypowINrWlType">
    <xs:annotation>
      <xs:documentation source="name">
        DWNP01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiNiepozwoleniowejType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
      <xs:documentation source="list">
        1553
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Podawany, jeżeli decyzja została wydana na wniosek. Nie wystąpi dla decyzji wydawanych z "urzędu".
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 - wydanie nowego,
          2 – zmiana , 3 - cofnięcie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOmylkaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji ws sprostowania decyzji
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji:
          1- Decyzja 2- Postanowienie
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Słownik wewnetrzny z wartościami:
          :
          1- postanowienie o sprostowaniu oczywistej omyłki pisarskiej
          2 - decyzja  o sprostowaniu oczywistej omyłki pisarskiej w sprawach celnych
          3 - postanowienie o wyjaśnieniu wątpliwości co do treści decyzji
          4 - decyzja o wyjaśnieniu wątpliwości co do treści decyzji w sprawach celnych                                                                    
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPiAKC35Type">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru kod
        </xs:documentation>
        <xs:documentation source="list">
          001F
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru 
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "rodzaju decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji: 1 - wydanie nowego zezwolenia, 2 – zmiana lub przedłużenie zezwolenia 3 – zakończenie ważności zezwolenia 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPiAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru kod
        </xs:documentation>
        <xs:documentation source="list">
          001F
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru 
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "rodzaju decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji:
          1 - wydanie nowego zezwolenia,
          2 – zmiana lub przedłużenie zezwolenia
          3 – cofnięcie zezwolenia
          4 - cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia który jedocześnie  może być numerem składu podatkowego
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zezwolenia który jedocześnie  może być numerem akcyzowym lub numerem składu podatkowego
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPInstrastatKaraType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stała wartość = CL001C zawężony do UCS
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 Kara pieniężna wraz z jej wysokością
          2 Umorzenie postępowania
          4 Cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wystawienia decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPKaraType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji niepozwoleniowych UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stała wartość = CL001C zawężony do UCS
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1.Decyzja w sprawie wymierzenia kary za urządzanie gier hazardowych wbrew przepisom ustawy
          4. Cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPrzedluzenieOPType">
    <xs:annotation>
      <xs:documentation source="name">
        DAZR01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący decyzje w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydanie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Ten sam co kod rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzje:
          1. nowa decyzja
          2. przedłużenie
          4. cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji do której odnosi sie przedłużenie
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer decyzji do której odosi 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru kod
        </xs:documentation>
        <xs:documentation source="list">
          001F
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNadzoruNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          US właściwego do spraw nadzoru 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji:
          1- decyzja 2 - postanowienia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1- stwierdzenie nieważności decyzji, 2- wznowienie postępowania, 3- unieważnienie decyzji, 4- uchylenie lub zmiana decyzji ostatecznej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOPZobowiazanieType">
    <xs:annotation>
      <xs:documentation source="name">
        DHPG01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          012
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1. Określenie zobowiązania podatkowego w podatku od gier
          2.Określenie zobowiązania podatkowego w podatku akcyzowym
          4. Cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOUstalenieAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzja. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzje :
          1.Decyzja  2. Zmiany decyzji 4. Cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji lub zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wystawienia decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOZwolnienieAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydajacego
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj Decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzje:
          1 zwolnienie
          2. przedłużenie zwolnienia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nr sprawy, której  dotyczy decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji lub zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiOZwrotAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzje:
          1. Jednorazowa decyzja
          4 - Cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji lub zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji kod
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji nazwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 - wydanie nowego pozwolenia lub zezwolenia,
          2 – zmiana lub przedłużenie pozwolenia
          lub zezwolenia
          3 – zakończenie ważności pozwolenia lub zezwolenia
          4 - cofnięcie zezwolenia z urzędu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy  decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiUKC1i2i3Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Nagłówek dla decyzji celnych- wydanie, zmiana i cofnięcie pozwolenia
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 - wydanie nowego pozwolenia
          2 – zmiana lub przedłużenie pozwolenia
          3 - cofnięcie decyzji / pozwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której została wydana decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy  decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiUKC1i2Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Nagłówek dla decyzji celnych- wydanie i zmiana pozwolenia
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 - wydanie nowego pozwolenia,
          2 – zmiana lub przedłużenie pozwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy  decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiUKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji o wydanie pozwolenia UKC zgodny z załącznikiem A.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWydania" type="xs:date" use="optional"/>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1 - wydanie nowego pozwolenia,
          2 – zmiana lub przedłużenie pozwolenia
          3 – zakończenie ważności pozwolenia
          4 - odmowa wydania, zmiany lub przedłużenia pozwolenia.
          (patrz Załącznik A do RWKC D1/3).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Możliwe kody:
          1: Unia Europejska (dotyczy wszystkich państw członkowskich);
          2: lista krajów (obowiązująca w niektórych krajach, które zostaną określone);
          3: jeden kraj (dotyczy tylko jednego kraju, tj. Kraju decyzyjnego).
          (patrz Załącznik A do RWKC, D.1/4)
        </xs:documentation>
        <xs:documentation source="rule">
          R501
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa geograficznego obszaru ważności - wartość stała "PL".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu (patrz Załącznik A RWKC D.1/1). 
        </xs:documentation>
        <xs:documentation source="list">
          1622
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy, w ramach której podjęto decyzje
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrPoprzedniejDecyzji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer poprzedniego pozwolenia lub decyzji (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer  decyzji,  których zmiany, przedłużenia lub cofnięcia dotyczył złożony wniosek  (D.1/6)
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="13"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiUzupelnieniaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji:
          1- decyzja 2 - postanowienia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1) decyzja o uzupełnieniu lub sprostowaniu decyzji  2) postanowienie o odmowie uzupełnienia lub sprostowania decyzji 3) decyzja o odmowie uzupełnienia lub sprostowania decyzji  
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiZawieszeniaLubPodjeciaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla decyzji bazowy dla pozwoleń i zezwoleń.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj decyzji 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wydanej decyzji:
          1 - Postanowienie
          2 - Decyzja
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji.
        </xs:documentation>
        <xs:documentation source="doc">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Słownik wewnetrzny z wartościami:
          1) postanowienie o zawieszeniu postępowania 2) decyzja o zawieszeniu postępowania w sprawach celnych
          3) postanowienie o podjęciu zawieszonego postępowania 4)  decyzja o podjęciu zawieszonego postępowania w sprawach celnych
          "
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="decyzjaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWlasnyWniosku" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku, którego dotyczy decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjiZgodaOPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zgodę z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj decyzji. Stały dla danego rodzaju komunikatu
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający decyzję
          1.  Udzielenie zgody
          2.  Zmiana udzielonej zgody
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZgody" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zgody, którego dotyczy zmiana, przedłużenie lub unieważnienie.
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano zgodę, którego zmiany, przedłużenia lub unieważnienia dotyczy ten wniosek. 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWydaniaZgody" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania zgody
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjWznoweniaKoniecType">
    <xs:annotation>
      <xs:documentation source="name">
        DWWP01 Koniec
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stała wartość = CL001C zawężony do UCS
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1) uchylenie w całości lub w części decyzji dotychczasowej i w tym zakresie orzeczenie co do istoty sprawy 2) umarzenie postępowanie w sprawie;
          3) odmowa uchylenia decyzji dotychczasowej w całości 4)odmowa uchylenia decyzji dotychczasowej w części
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDecyzjWznoweniaPoczatekType">
    <xs:annotation>
      <xs:documentation source="name">
        DWWP01 Poczatek
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydającego decyzję
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stała wartość = CL001C zawężony do UCS
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego decyzję
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="neme" xml:lang="pl">
          Numer sprawy której dotyczy wydana decyzja
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy jest jednocześnie numerem wydanej decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej decyzji.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający typ wydanej decyzji:
          1) postanowienie o wznowieniu postępowania 2) decyzja o wznowieniu postępowania w sprawach celnych
          3) odmowa uchylenia decyzji dotychczasowej w całości 4)  odmowa wznowienia postępowania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu decyzji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dla "typu decyzji"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania decyzji
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDokumentuType">
    <xs:annotation>
      <xs:documentation>
        Nagłówek dla dokumentów innych niż pozwolenie lub  zezwolenie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano dokument.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="40"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaDokumentu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa dokumentu.
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dokumentu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="150"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekDokumentuTypeOrganPrzekazujacy">
    <xs:annotation>
      <xs:documentation>
        Nagłówek dla dokumentów innych niż pozwolenie lub  zezwolenie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano dokument.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organPrzekazujacyKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu który przekazuje się sprawę lub dokument.
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organPrzekazujacyNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Organ przekazujący 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organOdbierajacyKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego przekazuje się sprawę lub dokument
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organOdbierajacyNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaDokumentu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa dokumentu.
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa dokumentu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="150"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekEdecyzjePozType1">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o pozwolenie CVA
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składany jest wniosek (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składany jest wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku:
          - AEOC - wniosek o korzystanie ze statusu upoważnionego przedsiębiorcy – Uproszczenia celne
          - AEOS wniosek o  korzystanie ze statusu upoważnionego przedsiębiorcy – Bezpieczeństwo i ochrona
          - AEOF - wniosek o korzystanie ze statusu upoważnionego przedsiębiorcy – Uproszczenia celne/Bezpieczeństwo i ochrona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany decyzji
          3. Wniosek w sprawie przedłużenia pozwolenia
          4. Wniosek w sprawie cofnięcia decyzji
          .
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis dla "Typu wniosku"
        </xs:documentation>
        <xs:documentation source="doc">
          Opis dla "Typu wniosku"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrPozwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia lub decyzji, której dotyczy zmiana, zawieszenie lub cofnięcie (D.1/6).
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekEdecyzjePozType2">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o pozwolenie wydawane w trybie UKC.
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składany jest wniosek (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składany jest wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Geograficzny obszar ważności - kod państwa (D.1/4)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Geograficzny obszar ważności - nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności - nazwa państwa: wartość stała "POLSKA".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku (D.1/3)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany decyzji
          3. Wniosek w sprawie przedłużenia pozwolenia
          4. Wniosek w sprawie cofnięcia decyzji
          (patrz Załącznik A do RWKC D1/3).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis dla "Typu wniosku"
        </xs:documentation>
        <xs:documentation source="doc">
          Opis dla "Rodzaju wniosku".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrPozwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy zmiana, przedłużenie lub cofnięcie (D.1/6).
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer rozstrzygnięcia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer rozstrzygnięcia (decyzji), w ramach którejgo wydano zezwolenie, którego zmiany, przedłużenia lub cofnięcia dotyczy ten wniosek. 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataRozpPozwolenia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wnioskowana data rozpoczęcia ważności pozwolenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wnioskowana data rozpoczęcia ważności decyzji (D.4/6).
        </xs:documentation>
        <xs:documentation source="rule">
          R506
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekEdecyzjePozType3">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o pozwolenie wydawane w trybie UKC - procedury specjalne
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składany jest wniosek (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składany jest wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod geograficznego obszaru ważności (D.1/4). Dla wniosków obsługiwanych w SZPROT - stała wartość "3" (Wniosek lub pozwolenie ograniczone do jednego państwa członkowskiego).
        </xs:documentation>
        <xs:documentation source="list">
          1617
        </xs:documentation>
        <xs:documentation source="rule">
          R501
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Geograficzny obszar ważności - państwo kod
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
        <xs:documentation source="rule">
          R802
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Geograficzny obszar ważności - nazwa państwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
        <xs:documentation source="rule">
          R803
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu (patrz Załącznik A RWKC D.1/1). 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku (D.1/3)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany decyzji
          3. Wniosek w sprawie przedłużenia pozwolenia
          4. Wniosek w sprawie cofnięcia decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis dla "Typu wniosku"
        </xs:documentation>
        <xs:documentation source="doc">
          Opis dla "Rodzaju wniosku".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrPozwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia lub decyzji (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia lub decyzji, której dotyczy zmiana, przedłużenie lub cofnięcie (D.1/6).
        </xs:documentation>
        <xs:documentation source="rule">
          R502, R675
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekEdecyzjeWniosekWIPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o WIP (WDBOI01) - bez obszaru geograficznego
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składany jest wniosek (D.1/7)
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składany jest wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod typu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek WIP
          3. Wniosek w sprawie przedłużenia użycia WIP
          .
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj wniosku
        </xs:documentation>
        <xs:documentation source="doc">
          Opis dla kodu typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrWip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji WIP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer decyzji WIP, której dotyczy wniosek o przedłużenie stosowania
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekPrzekazaniaType">
    <xs:annotation>
      <xs:documentation>
        Nagłówek dla rejstrów rozstrzygnięć
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy w SZPROT PLUS której dotyczy rejestr.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego przekazuje się rejestr
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydającego rozstrzygnięcie
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="formaRozstrzygnieciaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Forma rozstrzygnięcia kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Słownik lokalny z kodami :
          1. przekazanie odwołania do II instancji
          2. przekazanie zażalenia do II instancji
          3. przekazanie skargi do WSA 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="formaRozstrzygnieciaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Forma rozstrzygnięcia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rozstrzygniecieKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj rozstrzygnięcia. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rozstrzygniecieNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rozstrzygnięcia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekRejestruType">
    <xs:annotation>
      <xs:documentation>
        Nagłówek dla rejstrów rozstrzygnięć
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="idKoncesji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Id koncesji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer nadawane przez KRAG, docelowo przez SZPROT
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer  sprawy 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer ręcznie wpisywany przez użytkownika jeżeli rodzaj rozstrzygnięcia:: "Nowe"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKoncesji" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer koncesji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer wpisywany ręcznie przez użytkownikai – jeżeli rodzaj rozstrzygnięcia : "Nowe"
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu,udzielającego koncesji
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu,udzielającego koncesji
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała pola = Ministerstwo Finansów
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekSprawyType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nagłówek komunikatu z danymi  sprawy "z urzędu" - bazowy zestaw danych
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrSprawy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy w SZPROT
        </xs:documentation>
        <xs:documentation source="rule">
          R32
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="40"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu  prowadzącej sprawę lub postępowanie
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu prowadzącego sprawę lub postępowanie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuHazardowegoType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której zstało wydane zezwolenie, będąced przedmiotem zmiany.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOPolaczeniePostepowanType">
    <xs:annotation>
      <xs:documentation source="name">
        WDWPP01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1.Nowy
          2. Zmiana zakresu żądania
          3. Wycofanie wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOPrzedluzenieOPType">
    <xs:annotation>
      <xs:documentation source="name">
        WDAZR01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1 nowy wniosek
          2. przedłużenie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuORejestracjeType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o rejestrację uprawnionych wysyłających oraz uprawnionych odbiorców 
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składany jest wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składany jest wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Wniosek w sprawie nadania numeru
          2. Wniosek w sprawie zmiany danych
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAkcyzowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer akcyzowy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer akcyzowy, którego dotyczy zmiana
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="13"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOUstalenieAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek 2. Wniosek w sprawie zmiany decyzji 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOWstrzymaniuDecyzjiOPType">
    <xs:annotation>
      <xs:documentation source="name">
        WDWWWW01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku
          1. Nowy,
          2. Wycofanie wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOWzruszenieDecyzjiOstatecznejType">
    <xs:annotation>
      <xs:documentation>
        WDWND01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Nowy
          2. Zmiana
          3. Wycofanie wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wnioskowanyRodzajDecyzjiKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wnioskowany rodzaj decyzji kod
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kody:
          1. Wniosek o stwierdzenie nieważności decyzji,
          2. Wniosek o wznowienie postępowania,
          3. Wniosek o uchylenie rozstrzygnięcia,
          4. Wniosek o zmianę rozstrzygniecia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wnioskowanyRodzajDecyzjiNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wnioskowany rodzaj decyzji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOZwolnienieAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten wniosek w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1 zwolnienie
          2. przedłużenie zwolnienia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOZwrotAKCType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu 
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Jednorazowy wniosek 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuOZwrotHazardType">
    <xs:annotation>
      <xs:documentation source="name">
        WDWN01
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Nowy, 2. Zmiana, 3. Wycofanie wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wniosekKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kody dla wniosku
          1. Wniosek o zwrot nadpłaty w podatku od gier,
          2. Wniosek o zwrot nadpłaty w podatku akcyzowym
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wniosekNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuSkargaOPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku
          1. Skarga na rozstrzygnięcie organu; 2. Skarga na bezczynność organu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy do której odnosi się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Nagłówek dla wniosków innych niż pozwolenie lub  zezwolenie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
        <xs:documentation source="rule">
          R513
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała dla danego rodzaju komunikatu. Wypełniana automatycznie dla wniosków wypełnianych na portalu PUESC.
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa składanego wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZatwierdzenieOPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku
          1. Nowy
          2. Zmiana 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDecyzjiPierwotnej" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer decyzji pierwotnej do której odnosi się wniosek
        </xs:documentation>
        <xs:documentation source="rule">
          R960
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZawieszeniaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zawieszeni lub wznowienie postępowania
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Nowy
          2. Wycofanie
          3. Wniosek o podjęcie postępowania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano zezwolenie, którego zmiany, przedłużenia lub unieważnienia dotyczy ten wniosek. 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZazalenieType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zażalanie od decyzji
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu za pośrednictwem którego wnoszone jest zażalenie
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Organ za pośrednictwem którego wnoszone jest zażalenie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku (D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa opisująca rodzaj wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wycofanie wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis dla "Typu wniosku"
        </xs:documentation>
        <xs:documentation source="doc">
          Opis dla "Rodzaju wniosku".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organZazaleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu do którego wnoszone jest zażalenie
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organZazaleniaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Organ do którego wnoszone jest zażalenie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy której dotyczy wniosek
        </xs:documentation>
        <xs:documentation source="rule">
          R851
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZezwolenie35Type">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany zezwolenia
          3. Wniosek w sprawie przedłużenia zezwolenia
          4. Wniosek w sprawie cofnięcia zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZezwolenieDataOptionalType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek 2. Wniosek w sprawie zmiany zezwolenia
          3. Wniosek w sprawie przedłużenia zezwolenia
          4. Wniosek w sprawie cofnięcia zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zezwolenia który może być numerem akcyzowym
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZezwolenieType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer własny wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu wydania
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu wydania
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1. Pierwszy wniosek
          2. Wniosek w sprawie zmiany zezwolenia
          3. Wniosek w sprawie przedłużenia zezwolenia
          4. Wniosek w sprawie cofnięcia zezwolenia
        </xs:documentation>
        <xs:documentation source="list">
          1660
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZezwolenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zezwolenia który może być numerem akcyzowym lub numerem składu podatkowego.
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy w której została wydana. decyzja
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZgloszeniaGryPokerType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1 .Nowe zgłoszenie
          2. Wniosek o wycofanie zgłoszenia
          3.  Wniosek w sprawie zmiany zgłoszenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nr sprawy, której zmiany wniosek dotyczy
        </xs:documentation>
        <xs:documentation source="rule">
          R909
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZgloszeniaLoteriLubBingoType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1- zgłoszenie loterii fantowej, 2- zgłoszenie gry bingo fantowe, 3 - zmiana zgłoszenia, 4-wycofanie zgłoszenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nr sprawy, której zmiany wniosek dotyczy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZgloszeniaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1 .Nowe zgłoszenie
          2. Wniosek o zawieszenie postępowania
          3.  Wniosek w sprawie zmiany zgłoszenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nr sprawy, której zmiany wniosek dotyczy
        </xs:documentation>
        <xs:documentation source="rule">
          R909
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZgodaIntrastatType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zgodę WDIZ001
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa składanego wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1.Wniosek o wyrażenie zgody.
          2.Wniosek o sprostowanie złożonego wniosku.
          3.Wniosek o wycofanie złożonego wniosku.
          4.Wniosek w sprawie zmiany warunków wyrażonej zgody
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZgody" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zgody, którego dotyczy zmiana, przedłużenie lub unieważnienie.
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano zgodę, którego zmiany, przedłużenia lub unieważnienia dotyczy ten wniosek. 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWydaniaZgody" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania zgody
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZgodaType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zgodę z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa składanego wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku:
          1.	Wniosek o wyrażenie zgody.
          2.	Wniosek o sprostowanie złożonego wniosku.
          3.	Wniosek o wycofanie złożonego wniosku.
          4.	Wniosek w sprawie zmiany warunków wyrażonej zgody
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrZgody" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer zgody, którego dotyczy zmiana, przedłużenie lub unieważnienie.
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer sprawy, w ramach której wydano zgodę, którego zmiany, przedłużenia lub unieważnienia dotyczy ten wniosek. 
        </xs:documentation>
        <xs:documentation source="rule">
          R502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWydaniaZgody" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wydania zgody
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="NaglowekWnioskuZmianaOPType">
    <xs:annotation>
      <xs:documentation source="name">
        Nagłówek dla wniosków o zezwolenie z obszaru  ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="nrWlasny" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr własny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod organu, do którego składa się wniosek
        </xs:documentation>
        <xs:documentation source="list">
          001C
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="organNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa organu, do którego składa się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj wniosku. Stały dla danego rodzaju komunikatu 
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju wniosku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający cel złożenia wniosku
          1. Nowy
          2. Zmiana 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typWnioskuNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa typu wniosku.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer sprawy do której odnosi się wniosek
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataSystemowaWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data systemowa dla wniosku elektronicznego, w przypadku wpływu wniosku z kancelarii, wprowadzana przerz użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataWplywuWniosku" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data wpływu wniosku
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data pobierana z urzędowego potwierdzenia przyjęcia dla wniosku elektronicznego; dla wniosku z kancelari , data wpisywana przez użytkownika.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OplataSkrotType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Opłata dla wnioskow/decyzji niepozwoleniowych, ze zmniejszoną liczbą danych
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="typOplaty" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ opłaty 
        </xs:documentation>
        <xs:documentation source="list">
          014
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typOplatyNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa opłaty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwota" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota opłaty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="metodaPlatnosci" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Metoda płatności
        </xs:documentation>
        <xs:documentation source="list">
          006
        </xs:documentation>
        <xs:documentation source="rule">
          R844
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OplataType">
    <xs:annotation>
      <xs:documentation>
        Opłata
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="typOplaty" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ opłaty 
        </xs:documentation>
        <xs:documentation source="list">
          014
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typOplatyNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa opłaty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="podstawa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawa opłaty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="stawka" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Stawka
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Stawka wyrażona w procentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="17"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwota" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota opłaty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="metodaPlatnosci" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Metoda płatności
        </xs:documentation>
        <xs:documentation source="list">
          006
        </xs:documentation>
        <xs:documentation source="rule">
          R844
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaDanePodstawoweType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej  
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dokTozKod" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju dokumentu potwierdzającego tożsamość.
        </xs:documentation>
        <xs:documentation source="list">
          820
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dokTozNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDokToz" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Seria i numer dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="stanowisko" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Stanowisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaDwaAdresyType">
    <xs:annotation>
      <xs:documentation>
        Dane osoby fizycznej z adresami: zamieszkania i do korespondencji
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresBezDanychKomunikacyjnychType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres zamieszkania
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdresDoKorespondencji" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres do korespondencji
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaIdEdecyzjeType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba - Dane kontaktowe
      </xs:documentation>
      <xs:documentation source="rule">
        R24
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon kontaktowy
        </xs:documentation>
        <xs:documentation source="rule">
          R24
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
          <xs:minLength value="2"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R24
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaIdEdecyzjeType2024">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba - Dane kontaktowe
      </xs:documentation>
      <xs:documentation source="rule">
        R24
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon kontaktowy
        </xs:documentation>
        <xs:documentation source="rule">
          R24
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
          <xs:minLength value="2"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Podstawowy adres email
        </xs:documentation>
        <xs:documentation source="rule">
          R24
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="256"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaOdpowiedzialnaZaSprawyCelneType2024">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba - Dane kontaktowe
      </xs:documentation>
      <xs:documentation source="rule">
        R24
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="informacjeKontaktowe" minOccurs="0" maxOccurs="9">
        <xs:complexType>
          <xs:attribute name="telefon" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Telefon kontaktowy
              </xs:documentation>
              <xs:documentation source="rule">
                R24
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="50"/>
                <xs:minLength value="2"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="email" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Podstawowy adres email
              </xs:documentation>
              <xs:documentation source="rule">
                R24
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="256"/>
                <xs:minLength value="1"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="nazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa lub Imie i nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajowyNumerIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Krajowy Numer Identyfikacyjny dla Polski PESEL
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1"/>
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataUrodzenia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data urodzenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaIdentyfikacja2AdresType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaIdentyfikacja2Type">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej 
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaPrzedstawicielType">
    <xs:annotation>
      <xs:documentation source="doc">
        Osoba - Dane kontaktowe 1
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres przedstawiciela
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaPrzedstawicielType2024">
    <xs:annotation>
      <xs:documentation source="doc">
        Osoba - Dane kontaktowe 1
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres przedstawiciela
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaReprezentujacaPodmiotType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej  zarządzajacej podmiotem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresBezDanychKomunikacyjnychType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres zamieszkania
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie2" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Drugie imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dokTozKod" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju dokumentu potwierdzającego tożsamość.
        </xs:documentation>
        <xs:documentation source="list">
          820
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dokTozNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrSeriaDokToz" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Seria i numer dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaZAdresemType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres do korespondencji
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaZAdresemType2024">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres do korespondencji
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaZarzadzajacaPodmiotem2Type">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej  zarządzajacej podmiotem
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie2" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Drugie imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaFizycznaZarzadzajacaPodmiotemType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory osoby fizycznej  zarządzajacej podmiotem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresBezDanychKomunikacyjnychType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres zamieszkania
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie2" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Drugie imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dokTozKod" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju dokumentu potwierdzającego tożsamość.
        </xs:documentation>
        <xs:documentation source="list">
          820
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dokTozNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrDokToz" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Seria i numer dokumentu potwierdzającego tożsamość
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wyksztalcenie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wykształcenie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="doswiadczenieZawodowe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Doświadczenie zawodowe
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="500"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaOrazPrzedstawicieleCLOType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane osoby fizycznej wraz z przedstawicielami dla postępowań niepozwoleniowych celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType">
        <xs:annotation>
          <xs:documentation source="name ">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielPodmiot" type="PelnomocnikPodmiotType" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - podmiotu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela reprezentującego podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielOsoba" type="PelnomocnikOsobaType" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - osoby fizycznej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela - osoby reprezentującej podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OsobaOrazPrzedstawicieleWydrukType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane osoby fizycznej wraz z przedstawicielami dla postępowań niepozwoleniowych celnych - dane do wydruku
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType">
        <xs:annotation>
          <xs:documentation source="name ">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielPodmiot" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - podmiotu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela reprezentującego podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Adres" type="AdresType">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Adres
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="idsisc" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                ID SISC
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nip" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                NIP
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="10"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="eori" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                EORI
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nazwaPelna" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Nazwa pełna
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="PrzedstawicielOsoba" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - osoby fizycznej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela - osoby reprezentującej podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Adres" type="AdresType">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Adres
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="idsisc" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                ID SISC
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="pesel" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                PESEL
              </xs:documentation>
              <xs:documentation source="rule">
                R13
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="11"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="imie" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Imię
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="70"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nazwisko" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Nazwisko
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="70"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="OswiadczenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Oświadczenie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="oswiadczenieKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod oświadczenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod oświadczenia.
        </xs:documentation>
        <xs:documentation source="list">
          1623
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="oswiadczenieNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="doc" xml:lang="pl">
          Tekst oświadczenia.
        </xs:documentation>
        <xs:documentation source="name" xml:lang="pl">
          Oświadczenie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="500"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="zaakceptowane" type="xs:boolean" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Zaakceptowano
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Zaakceptowano - wartość "1" (Tak), brak akceptacji - wartość "0" (Nie).
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PelnomocnikOsobaOPType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane pełnomocnika - osoby fizycznej
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="OsobaFizycznaIdentyfikacja2Type">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Adres
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Adres wnioskodawcy- osoby fizycznej
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPelnomocnictwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut przyjmuje wartości:
              1.Pełnomocnictwo ogólne
              2.Pełnomocnictwo szczególne
              3. Pełnomocnictwo do doręczeń
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPelnomocnictwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rodzaju pełnomocnictwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ta osoba jest pełnomocnikiem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PelnomocnikOsobaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane pełnomocnika - osoby fizycznej
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="OsobaFizycznaIdentyfikacja2Type">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Adres
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Adres wnioskodawcy- osoby fizycznej
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPelnomocnictwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1. Oznaczała pełnomocnictwo złożone w e-Klient,
              2. Pełnomocnictwo załączone do wniosku 
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPelnomocnictwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rodzaju pełnomocnictwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="nrRejestruUpowaznien" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nr w rejestrze upoważnień
            </xs:documentation>
            <xs:documentation source="doc">
              Numer upoważnienia w rejestrze upoważnień.
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="35"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ta osoba jest pełnomocnikiem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PelnomocnikOsobaType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane pełnomocnika - osoby fizycznej
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="OsobaFizycznaIdentyfikacja2Type">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType2024" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Adres
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Adres wnioskodawcy- osoby fizycznej
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPelnomocnictwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1. Oznaczała pełnomocnictwo złożone w e-Klient,
              2. Pełnomocnictwo załączone do wniosku 
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPelnomocnictwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rodzaju pełnomocnictwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="nrRejestruUpowaznien" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nr w rejestrze upoważnień
            </xs:documentation>
            <xs:documentation source="doc">
              Numer upoważnienia w rejestrze upoważnień.
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="35"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ta osoba jest pełnomocnikiem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PelnomocnikPodmiotOPType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane pełonomocnika - podmiot
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="PodmiotIdentyfikacjaZAEOType">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name ">
                Adres
              </xs:documentation>
              <xs:documentation source="doc">
                Adres pełnomocnika
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPelnomocnictwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju pełnomocnika
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1  Pełnomocnictwo złożone w e-Klient, 2. Pełnomocnictwo załączone do wniosku
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPelnomocnictwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rozdaju przedstawicielstwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ten podmiot jest pełnomocnikiem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PelnomocnikPodmiotType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane pełnomocnika - podmiotu 
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="PodmiotIdentyfikacjaZAEOType">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name ">
                Adres
              </xs:documentation>
              <xs:documentation source="doc">
                Adres pełnomocnika
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPelnomocnictwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1. Pełnomocnictwo złożone w e-Klient,
              2. Pełnomocnictwo załączone do wniosku 
            </xs:documentation>
            <xs:documentation source="rule" xml:lang="pl">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPelnomocnictwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju pełnomocnictwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rozdaju pełnomocnictwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ten podmiot jest pełnomocnikiem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PodmiotOrazPrzedstawicieleCLOType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu i jego przedstawicieli dla postępowań celnych niepozwoleniowych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType">
        <xs:annotation>
          <xs:documentation source="name ">
            Adres siedziby
          </xs:documentation>
          <xs:documentation source="doc">
            Adres siedziby podmiotu
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielPodmiot" type="PelnomocnikPodmiotType" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - podmiotu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela reprezentującego podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielOsoba" type="PelnomocnikOsobaType" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - osoby fizycznej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela - osoby reprezentującej podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrVatUe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer VAT UE z kraju siedziby głównej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr pozwolenia AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotOrazPrzedstawicieleWydrukType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu i jego przedstawicieli dla postępowań celnych niepozwoleniowych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType">
        <xs:annotation>
          <xs:documentation source="name ">
            Adres siedziby
          </xs:documentation>
          <xs:documentation source="doc">
            Adres siedziby podmiotu
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrzedstawicielPodmiot" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - podmiotu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela reprezentującego podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Adres" type="AdresType">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Adres
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="idsisc" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                ID SISC
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nip" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                NIP
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="10"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="eori" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                EORI
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nazwaPelna" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Nazwa pełna
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="PrzedstawicielOsoba" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane przedstawiciela - osoby fizycznej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane przedstawiciela - osoby reprezentującej podmiot w tym postępowaniu.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Adres" type="AdresType">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Adres
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="idsisc" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                ID SISC
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="17"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="pesel" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                PESEL
              </xs:documentation>
              <xs:documentation source="rule">
                R13
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="11"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="imie" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Imię
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="70"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nazwisko" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Nazwisko
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="70"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotIdentyfikacjaZAEOType">
    <xs:annotation>
      <xs:documentation>
        Identyfikatory podmiotu poszerzone o nr AEO
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrVatUe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer VAT UE z kraju siedziby głównej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr pozwolenia AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPelnyIDSISCType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot (wnioskodawca) z wszystkimi identyfikatorami i wymaganym IDSISC
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrVatUe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer VAT UE z kraju siedziby głównej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr pozwolenia AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPelnyIDSISCType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot (wnioskodawca) z wszystkimi identyfikatorami i wymaganym IDSISC
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrVatUe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer VAT UE z kraju siedziby głównej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr pozwolenia AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPozwolenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia z adresem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr pozwolenia AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPrzedstawicielCloType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Przedstawiciela dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres przedstawiciela
          </xs:documentation>
          <xs:documentation source="rule">
            R674
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
        <xs:documentation source="rule">
          R674
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada nazwie skróconej.
        </xs:documentation>
        <xs:documentation source="rule">
          R674
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPrzedstawicielCloType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Przedstawiciela dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres przedstawiciela
          </xs:documentation>
          <xs:documentation source="rule">
            R674
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
        <xs:documentation source="rule">
          R674
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada nazwie skróconej.
        </xs:documentation>
        <xs:documentation source="rule">
          R674
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPrzedstawicielOPBezEORIType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Przedstawiciela dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres przedstawiciela
          </xs:documentation>
          <xs:documentation source="rule">
            R674
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada nazwie skróconej.
        </xs:documentation>
        <xs:documentation source="rule">
          R674
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotPrzedstawicielZezwolenieOPType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia z adresem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotWnioskodawcaCloAEOType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Wnioskodawcy dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada skróconej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotWnioskodawcaCloType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Wnioskodawcy dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada nazwie skróconej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotWnioskodawcaCloType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - Wnioskodawcy dla wniosków celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          W przypadku podmiotów zarejestrowanych w SISC odpowiada nazwie skróconej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrAEO" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr AEO
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer posiadanego pozwolenia AEO.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZaplaconaAkcyzaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane podmiotu - uprawnionego wysyłającego lub uprawnionego odbiorcy
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres siedziby lub zamieszkania
          </xs:documentation>
          <xs:documentation source="rules">
            R2, R1008
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="AdresType">
              <xs:attribute name="rodzajKod" use="required">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Kod rodzaju adresu 
                  </xs:documentation>
                  <xs:documentation source="list">
                    1507
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="SkladPodatkowy" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Numer akcyzowy Prowadzącego Skład Podatkowy
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="nrAkcyzowy" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Numer akcyzowy Prowadzącego Skład podatkowy
              </xs:documentation>
              <xs:documentation source="list" xml:lang="pl">
                4021
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="13"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="ZarejestrowanyOdbiorca" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Numery akcyzowe Zarejestrowanego Odbiorcy 
          </xs:documentation>
          <xs:documentation source="list">
            4023
          </xs:documentation>
          <xs:documentation source="rule">
            R1010
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="nrAkcyzowy" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Numer akcyzowy zarejestrowanego odbiorcy
              </xs:documentation>
              <xs:documentation source="list">
                4023
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="13"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="ZarejestrowanyWysylajacy" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name">
            Numer akcyzowy Zarejestrowanego Wysyłającego 
          </xs:documentation>
          <xs:documentation source="list">
            4027
          </xs:documentation>
          <xs:documentation source="rule">
            R1009
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="nrAkcyzowy" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Numer akcyzowy zarejestrowanego wysyłającego.
              </xs:documentation>
              <xs:documentation source="list">
                4027
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="13"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa lub nazwisko i imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS Oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wypełniane, jeżeli podmiot zagraniczny działa w Polsce za pośrednictwem oddziału
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="formaPrawnaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod formy prawnej
        </xs:documentation>
        <xs:documentation source="list">
          1502
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZatwierdzenieHazardType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia z adresem WDHZL01
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres siedziby
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Dla podmiotów zagranicznych wymagane jest podanie numeru NIP nadanego w POLSCE. 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrCeidg" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer CEIDG
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer wpisu do rejestru CEIDG
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZezwolenieAdresDoKorespondecjiType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla zezwolenia z adresem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres siedziby
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdresDoKorespondencji" type="AdresTypePL" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres do korespondencji
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS Oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole do wypełnienia w przypadku, gdy podmiot zagraniczny
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrRejestruPanstwaSiedziby" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer odpowiedniego rejestru handlowego państwa siedziby spółki
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZezwolenieBezAdresuType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia bez
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS Oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole do wypełnienia w przypadku, gdy podmiot zagraniczny
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrRejestruPanstwaSiedziby" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer odpowiedniego rejestru handlowego państwa siedziby spółki
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZezwolenieNipType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia z adresemNIP
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres siedziby
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS Oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole do wypełnienia w przypadku, gdy podmiot zagraniczny
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrRejestruPanstwaSiedziby" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer odpowiedniego rejestru handlowego państwa siedziby spółki
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZezwolenieRegonType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla pozwolenia regon
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres 
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Dla podmiotów zagranicznych wymagane jest podanie numeru NIP nadanego w POLSCE. 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole do wypełnienia w przypadku, gdy podmiot zagraniczny
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrCeidg" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer CEIDG
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer wpisu do rejestru CEIDG
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodmiotZezwolenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podmiot dla zezwolenia z adresem
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres siedziby
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrs" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr wpisu do KRS
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrKrsOddzialu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer KRS Oddziału
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole do wypełnienia w przypadku, gdy podmiot zagraniczny
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrRejestruPanstwaSiedziby" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer odpowiedniego rejestru handlowego państwa siedziby spółki
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodpisujacyDecyzje2Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Standardowy zestaw danych stopki dla decyzji
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="stanowisko" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Stanowisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="stopien" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Stopień służbowy
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="data" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data 
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodpisujacyDecyzjeType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Standardowy zestaw danych stopki dla decyzji
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="stanowisko" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Stanowisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="data" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data 
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PodstawaPrawnaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Podstawa prawna
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="tresc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Treść podstawy prawnej
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:whiteSpace value="preserve"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PouczenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pouczenie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="tresc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Treść pouczenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:whiteSpace value="preserve"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieCelneAEOType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj bez obszaru geograficznego (D.1/1, D.4/6) 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji lub pozwolenia (D.4/6).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajPozwoleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju pozwolenia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj pozwolenia :
          - AEOC - pozwolenie na korzystanie ze statusu upoważnionego przedsiębiorcy – Uproszczenia celne
          - AEOS pozwolenie na korzystanie ze statusu upoważnionego przedsiębiorcy – Bezpieczeństwo i ochrona
          - AEOF - pozwolenie na korzystanie ze statusu upoważnionego przedsiębiorcy – Uproszczenia celne/Bezpieczeństwo i ochrona
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego pozwolenia.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieCelneBeztermionoweType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj (D.1/1, D.1/4, D.4/6).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji lub pozwolenia (D.4/6).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajPozwoleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju pozwolenia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj pozwolenia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego pozwolenia.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności  (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała: "3" - jeden kraj
          (patrz Załącznik A do RWKC, D 1/4).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod państwa (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "PL".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "POLSKA".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieCelnePLType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj bez obszaru geograficznegoPL (D.1/1, D.4/6, D.4/7) 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji lub pozwolenia (D.4/6, D.4/7).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="dataDo" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data upływu ważności pozwolenia (D.4/7
              </xs:documentation>
              <xs:documentation source="rule">
                R676
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajPozwoleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju pozwolenia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj pozwolenia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego pozwolenia.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieCelneTerminoweType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj (D.1/1, D.1/4, D.4/6, D.4.7).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji lub pozwolenia (D.4/6, D.4/7).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="dataDo" type="xs:date" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data upływu ważności pozwolenia (D.4/7)
              </xs:documentation>
              <xs:documentation source="rule">
                R676
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajPozwoleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju pozwolenia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj pozwolenia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego pozwolenia.
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności  (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała: "3" - jeden kraj
          (patrz Załącznik A do RWKC, D 1/4).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod państwa (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "PL".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "POLSKA".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieCelneType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj (D.1/1, D.1/4, D.4/6).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności decyzji lub pozwolenia (D.4/6).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności pozwolenia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="dataDo" type="xs:date" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Okres ważności lub decyzji pozwolenia (D.4/6).
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajPozwoleniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju pozwolenia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj pozwolenia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego pozwolenia.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer pozwolenia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności  (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała: "3" - jeden kraj
          (patrz Załącznik A do RWKC, D 1/4).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod państwa (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "PL".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "POLSKA".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PozwolenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Pozwolenie - numer i rodzaj
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj pozwolenia
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          034
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pozwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer pozwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ProceduraCelnaType">
    <xs:annotation>
      <xs:documentation source="name">
        Dane dotyczące procedury celnej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kodProcedury" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod procedury celnej
        </xs:documentation>
        <xs:documentation source="list"/>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaProcedury" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa procedury celnej
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PrzedstawicielOsobaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane przedstawiciela - osoby fizycznej nomenklatura UKC
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="OsobaFizycznaIdentyfikacja2Type">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Adres
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Adres wnioskodawcy- osoby fizycznej
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPrzedstawicielstwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1. Przedstawicielstwo ogólne 2. Przedstawicielstwo szczególne
              3. Przedstawicielstwo do doręczeń
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPrzedstawicielstwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rodzaju przedstawicielstwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ta osoba jest przedstawicielem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PrzedstawicielPodmiotOPType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane przedstawiciela - podmiotu nomenklatura UKC
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="PodmiotIdentyfikacjaZAEOType">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name ">
                Adres
              </xs:documentation>
              <xs:documentation source="doc">
                Adres pełnomocnika
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPrzedstawicielstwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut przyjmuje wartości:
              1. Przedstawicielstwo ogólne 2. Przedstawicielstwo szczególne
              3. Przedstawicielstwo do doręczeń
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPrzedstawicielstwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rozdaju przedstawicielstwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ten podmiot jest przedstawicielem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PrzedstawicielPodmiotRPOType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane przedstawiciela - podmiotu nomenklatura UKC
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="PodmiotIdentyfikacjaZAEOType">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name ">
                Adres
              </xs:documentation>
              <xs:documentation source="doc">
                Adres pełnomocnika
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPrzedstawicielstwaKod" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1  Pełnomocnictwo złożone w e-Klient, 2. Pełnomocnictwo załączone do wniosku
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPrzedstawicielstwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rozdaju przedstawicielstwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="doDoreczen" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Do doręczeń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy ten podmiot jest przedstawicielem do doręczeń.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PrzedstawicielPodmiotType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane przedstawiciela - podmiotu nomenklatura UKC
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="PodmiotIdentyfikacjaZAEOType">
        <xs:sequence>
          <xs:element name="Adres" type="AdresType" minOccurs="0">
            <xs:annotation>
              <xs:documentation source="name ">
                Adres
              </xs:documentation>
              <xs:documentation source="doc">
                Adres pełnomocnika
              </xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="rodzajPrzedstawicielstwaKod" use="required">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kod rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Atrybut może przyjmować wartości:
              1. Przedstawicielstwo ogólne 2. Przedstawicielstwo szczególne
            </xs:documentation>
            <xs:documentation source="rule">
              R508
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="1"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="rodzajPrzedstawicielstwaNazwa" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nazwa rodzaju przedstawicielstwa
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Opis dla "Kodu rozdaju przedstawicielstwa".
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:maxLength value="70"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="potwierdzenieOplatySkarbowej" type="xs:boolean" use="optional">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone potwierdzenie opłaty skarbowej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacja, czy do wniosku załączono potwierdzenie opłaty skarbowej.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="SentencjaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Sentencja
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="tresc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Treść sentencji
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:whiteSpace value="preserve"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="SkladajacyWniosek2Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Standardowy zestaw danych stopki każdego z wniosków
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer ID SISC
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator SISC nadany osobie fizycznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="data" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data 
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="telefon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Telefon
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="email" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Adres e-mail
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="50"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="SkladajacyWniosekType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Standardowy zestaw danych stopki każdego z wniosków
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer ID SISC
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator SISC nadany osobie fizycznej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="data" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data 
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarDecyzjaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Informacje o towarze dla decyzji w sprawie naruszeń
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Naleznosc" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Należności celne
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="OplataType">
              <xs:attribute name="metodaPlatnosciOpis" use="optional">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Metoda płatności
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Nazwa metody płatności.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300"/>
                    <xs:whiteSpace value="collapse"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="nrMRN" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr referencyjny zgłoszenia (MRN)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="18"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataMRN" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data zgłoszenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrPozycji" use="optional">
      <xs:annotation>
        <xs:documentation source="name">
          Nr pozycji zgłoszenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:maxExclusive value="999"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajOdprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj odprawy
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          1640
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajOdprawyOpis" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraPoprzednia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Procedura poprzednia
        </xs:documentation>
        <xs:documentation source="doc">
          Kod poprzedniej procedury celnej
        </xs:documentation>
        <xs:documentation source="list">
          003
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraWnioskowana" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Procedura wnioskowana
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod wnioskowanej procedury celnej
        </xs:documentation>
        <xs:documentation source="list">
          003
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis procedury celnej
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa lub opis wnioskowanej procedury celnej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodTowarowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodTaric" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod TARIC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opisTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="masaBrutto" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Masa brutto towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="masaNetto" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Masa netto towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ilosc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ilość towaru w podanej jednostce miary
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="jednostkaMiary" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Jednostka miary towarów.
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          068
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wartoscCelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wartość towarów
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataPowstaniaDlugu" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data powstania długu celnego
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarObejmowanyZalacznikA2Type">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Kod i pozostałe dane towarów obejmowanych procedurą celną zgodny z D.5/1; D.5/2; D.5/3 i D.5/4 Załącznika A
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kodTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod towaru (D.5/1)
        </xs:documentation>
        <xs:documentation source="list">
          028
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="4"/>
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towarów (D.5/2)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ilosc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ilość towarów (D.5/3)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="6"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="jednostkaMiary" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Jednostka miary towarów (D.5/3)
        </xs:documentation>
        <xs:documentation source="list">
          068
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wartosc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wartość towarów (D.5/4)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waluta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Waluta
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod waluty, w której podano wartość towarów (D.5/4).
        </xs:documentation>
        <xs:documentation source="list">
          026
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarObejmowanyZalacznikApkType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Kod i pozostałe dane towarów obejmowanych procedurą celną zgodny z D.5/1; D.5/2; D.5/3 i D.5/4  Załącznika A 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="kodDodatkowyPL" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Polskie kody dodatkowe (D.5/1)
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod dodatkowy PL
              </xs:documentation>
              <xs:documentation source="list">
                109
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="4"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="kodDodatkowyUE" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Unijne kody dodatkowe (D.5/1)
          </xs:documentation>
          <xs:documentation source="list">
            088
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod dodatkowy UE
              </xs:documentation>
              <xs:documentation source="list">
                088
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="4"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="kodTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod towaru (D.5/1)
        </xs:documentation>
        <xs:documentation source="list">
          028
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="4"/>
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towarów (D.5/2)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa towaru lub oznaczenie stosowane w dokumentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ilosc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ilość towarów (D.5/3)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="6"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="jednostkaMiary" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Jednostka miary towarów (D.5/3)
        </xs:documentation>
        <xs:documentation source="list">
          068
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wartosc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wartość towarów (D.5/4)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waluta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Waluta
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod waluty, w której podano wartość towarów (D.5/4).
        </xs:documentation>
        <xs:documentation source="list">
          026
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodTaric" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod TARIC (D.5/1)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wspolczynnikProduktywnosci" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Współczynnik produktywności (D.5/5)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarObejmowanyZalacznikAType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Kod i pozostałe dane towarów obejmowanych procedurą celną zgodny z D.5/1; D.5/2 Załącznika A
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kodCnTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod CN towaru (D.5/1)
        </xs:documentation>
        <xs:documentation source="list">
          028
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towarów (D.5/2)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa towaru lub oznaczenie stosowane w dokumentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarObejmowanyZalacznikAType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Kod i pozostałe dane towarów obejmowanych procedurą celną zgodny z D.5/1; D.5/2 Załącznika A
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="kodCnTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod CN towaru (D.5/1)
        </xs:documentation>
        <xs:documentation source="list">
          028
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towarów (D.5/2)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa towaru lub oznaczenie stosowane w dokumentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2560"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="TowarType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Informacje o towarze dla decyzji w sprawie naruszeń
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="proceduraSzczegoly" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name">
            Kody uszczegóławiające procedurę celną
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="uszczegolowienieProcedury" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Uszczegółowienie procedury - kod
              </xs:documentation>
              <xs:documentation source="list">
                076
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="3"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="uszczegolowienieProceduryOpis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Uszczegółowienie procedury
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Opis dla kodu uszczegóławiającego procedurę.
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="1024"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="kodDodatkowyUE" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name">
            Kody dodatkowe TARIC
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod dodatkowy UE
              </xs:documentation>
              <xs:documentation source="list">
                088
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="4"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Opis dla kodu dodatkowego UE
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="2000"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="kodDodatkowyPL" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Polskie kody dodatkowe
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod dodatkowy PL
              </xs:documentation>
              <xs:documentation source="list">
                109
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="4"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Opis dla kodu dodatkowego PL
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="2000"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="korektaWartosci" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name">
            Korekta wartości towarów
          </xs:documentation>
          <xs:documentation source="doc">
            Wartości korekty z pola 44 zgłoszenia celnego
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Korekta wartości - kod
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Kod określający przeznaczenie korekty.
              </xs:documentation>
              <xs:documentation source="list">
                087
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="4"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Korekta wartości - opis
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="1024"/>
                <xs:whiteSpace value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="wartosc" use="required">
            <xs:annotation>
              <xs:documentation source="name">
                Wartość korekty
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Wartość korekty (może zawierać wartości ujemne i dodatnie).
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:decimal">
                <xs:totalDigits value="15"/>
                <xs:fractionDigits value="2"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="Naleznosc" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Należności celne
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="OplataType">
              <xs:attribute name="metodaPlatnosciOpis" use="optional">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Metoda płatności
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Nazwa metody płatności.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300"/>
                    <xs:whiteSpace value="collapse"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="nrMRN" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr referencyjny zgłoszenia (MRN)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="18"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataMRN" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data zgłoszenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="nrPozycji" use="optional">
      <xs:annotation>
        <xs:documentation source="name">
          Nr pozycji zgłoszenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:maxExclusive value="999"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajOdprawy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj odprawy
        </xs:documentation>
        <xs:documentation source="list">
          1640
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajOdprawyOpis" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraPoprzednia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Procedura poprzednia
        </xs:documentation>
        <xs:documentation source="doc">
          Kod poprzedniej procedury celnej
        </xs:documentation>
        <xs:documentation source="list">
          003
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraWnioskowana" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Procedura wnioskowana
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod wnioskowanej procedury celnej
        </xs:documentation>
        <xs:documentation source="list">
          003
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="proceduraOpis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis procedury celnej
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa lub opis wnioskowanej procedury celnej.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodTowarowy" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="8"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kodTaric" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod TARIC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opisTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajPochodzenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj pochodzenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod kraju pochodzenia
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajWysylki" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj wysyłki
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod kraju wysyłki.
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="krajPrzeznaczenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj przeznaczenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod kraju przeznaczenia
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="masaBrutto" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Masa brutto
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="masaNetto" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Masa netto
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ilosc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Ilość towaru w podanej jednostce miary
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="15"/>
          <xs:fractionDigits value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="jednostkaMiary" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Jednostka miary
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          068
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wartoscTowaru" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wartość towaru
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waluta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod waluty faktury
        </xs:documentation>
        <xs:documentation source="list">
          026
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kursWaluty" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kurs waluty
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="12"/>
          <xs:fractionDigits value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kosztPrzetworzenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Koszt przetworzenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Przypadek szczególny 6.10 Powrotny przywóz po uszlachetnianiu biernym z  zastosowaniem  obliczenia należności  celnych  na  podstawie  kosztów  procesu  przetwarzania przeprowadzonego poza obszarem celnym Unii (art. 86 ust. 5 UKC).
          Wartość z pola 42 zgłoszenia celnego.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataDoKalkulacji1" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data do kalkulacji 1
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data do kalkulacji 1 podana w zgłoszeniu celnym.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataDoKalkulacji2" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data do kalkulacji 2
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data do kalkulacji 2 podana w zgłoszeniu celnym.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="preferencje" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Preferencje
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod preferencji celnych.
        </xs:documentation>
        <xs:documentation source="list">
          013
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataZwolnienia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data zwolnienia towarów
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dataPowstaniaDlugu" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data powstania długu celnego
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UpowaznienieCelneDecyzjaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Upoważnienie - numer i rodzaj (D.1/1, D.1/4, D.4/6).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności upoważnienia (D.4/7).
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Jeśli brak danych, to bezterminowe
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataDo" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data zakończenia ważności upoważnienia (D.4/7)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data zakończenia ważności upoważnienia - opis (D.4/7)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajUpowaznieniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju upoważnienia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj upoważnienia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajUpowaznieniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa upoważnienia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego upoważnienia.
        </xs:documentation>
        <xs:documentation source="list">
          ?
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer upoważnienia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer upoważnienia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności  (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała: "3" - jeden kraj
          (patrz Załącznik A do RWKC, D 1/4).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod państwa (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "PL".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "POLSKA".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UpowaznienieCelneType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Upoważnienie - numer i rodzaj (D.1/1, D.1/4, D.4/6).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OkresWaznosci">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Okres ważności upoważnienia (D.4/6).
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="dataOd" type="xs:date" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności upoważnienia (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="opis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Data rozpoczęcia ważności upoważnienia - opis (D.4/6)
              </xs:documentation>
              <xs:documentation source="rule">
                R659
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="rodzajUpowaznieniaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju upoważnienia ( D.1/1)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj upoważnienia, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajUpowaznieniaNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa upoważnienia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanego lub zmienionego upoważnienia.
        </xs:documentation>
        <xs:documentation source="list">
          1553
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer upoważnienia (D.1/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Numer upoważnienia, którego dotyczy ta decyzja.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod geograficznego obszaru ważności  (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartość stała: "3" - jeden kraj
          (patrz Załącznik A do RWKC, D 1/4).
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis geograficznego obszaru ważności
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Opis kodu geograficznego obszaru ważności.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="75"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod państwa (D.1/4)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "PL".
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="geogObszarWaznosciPanstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa państwa
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Geograficzny obszar ważności pozwolenia - kod państwa. Wartość stała "POLSKA".
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UzasadnienieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Uzasadnienie
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="tresc" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Treść uzasadnienia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:whiteSpace value="preserve"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZabezpieczenieOplatType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Dane zabezpieczenia dla należności celnych
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="zwolnienieZZabezpieczenia" type="xs:boolean" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Czy Wnioskodawca wnioskuje o zwolnienie z zabezpieczenia?
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="uzasadnienie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Uzasadnienie
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Uzasadnienie wniosku o zwolnienie z zabezpieczenia.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrGRN" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer GRN 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="24"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="innyRodzajZabezpieczeniaNr" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer innego niż GRN rodzaju zabezpieczenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwotaZabezpieczenia" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota zabezpieczenia w PLN
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZabezpieczenieZalacznikAType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Informacje o zabezpieczeniu (D.4/12; D.8/6; D.8/7).
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="UCZabezpieczenia" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Urząd celny zabezpieczenia (D.4.12).
          </xs:documentation>
          <xs:documentation source="rule">
            R657
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="kod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod
              </xs:documentation>
              <xs:documentation source="doc" xml:lang="pl">
                Kod urzędu celnego zabezpieczenia (D.4/12).
              </xs:documentation>
              <xs:documentation source="list">
                001A
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="8"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="nazwa" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Nazwa urzędu celnego zabezpieczenia 
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="255"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="wymaganeZabezpieczenieKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający wymagalność zabezpieczenia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający wymagalność zabezpieczenia (D.8/6) :
          0. Nie wymaga się zabezpieczenia
          1. Wymaga się zabezpieczenia
        </xs:documentation>
        <xs:documentation source="rule">
          R656, R657
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrGRN" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer GRN (D.8/6)
        </xs:documentation>
        <xs:documentation source="rule">
          R656
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="24"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZabezpieczniaCelneBezFormyZabezpieczeniaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Forma i poziom zabezpieczeń celnych
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PoziomZabezpieczenia" maxOccurs="99">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Poziom zabezpieczenia kwoty referencyjnej
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="poziomZabezpieczeniaKod" use="required">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Kod poziomu zabezpieczeń
              </xs:documentation>
              <xs:documentation source="list">
                1547
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="2"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="poziomZabezpieczeniaNazwa" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Poziom zabezpieczenia 
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="255"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="poziomZabezpieczeniaOpis" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Poziom zabezpieczenia opis
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="kwotaReferencyjna" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota referencyjna (VI/5)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwotaReferencyjnaSlownie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota referencyjna słownie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waluta" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Waluta
        </xs:documentation>
        <xs:documentation source="list">
          026
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="sposobWyliczeniaKwoty" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Sposób wyliczenia kwoty referencyjnej 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Sposób wyliczenia kwoty referencyjnej 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZabezpieczniaCelneType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Forma i poziom zabezpieczeń celnych
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="formaZabezpieczenKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod formy zabezpieczeń
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Wartości listy:
          1  lub 2 jeśli nie ma gwaranta na liście można dopisać dane spoza listy. 
        </xs:documentation>
        <xs:documentation source="list">
          1567
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="formaZabezpieczenNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Forma zabezpieczenia (VI/4)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwotaReferencyjna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota referencyjna (VI/5)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="16"/>
          <xs:fractionDigits value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="kwotaReferencyjnaSlownie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kwota referencyjna słownie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="sposobWyliczeniaKwoty" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Sposób wyliczenia kwoty referencyjnej 
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Sposób wyliczenia kwoty referencyjnej 
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poziomZabazpieczeniaKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod poziomu zabezpieczeń
        </xs:documentation>
        <xs:documentation source="list">
          1547
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="poziomZabezpieczeniaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Poziom zabezpieczenia (VI/3)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="typTerminuPlatnosci" type="xs:boolean" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Termin płatności (VI/6)
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          0- Normalny okres przed dokonaniem płatności
          1-Odroczenie płatności (art.. 110 kodeksu) 
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZalacznikType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Plik/Załącznik
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="zawartosc" type="xs:base64Binary" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Binarna zawartość pliku
        </xs:documentation>
        <xs:documentation source="rule">
          R65
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="eDokument" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wskazanie na plik w e-Dokumentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="40"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający zawartość pliku
        </xs:documentation>
        <xs:documentation source="list">
          1625
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju zawartości pliku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWystawienia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name " xml:lang="pl">
          Data wystawienia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data wystawienia załączonego dokumentu
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis zawartości pliku
        </xs:documentation>
        <xs:documentation source="rule">
          R66
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="350"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="mimeType" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ MIME
        </xs:documentation>
        <xs:documentation source="rule">
          R88
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZalacznikType2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Plik/Załącznik
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="zawartosc" type="xs:base64Binary" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Binarna zawartość pliku
        </xs:documentation>
        <xs:documentation source="rule">
          R65
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="eDokument" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Wskazanie na plik w e-Dokumentach
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="40"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający zawartość pliku
        </xs:documentation>
        <xs:documentation source="list">
          1625
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="5"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rodzajNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa rodzaju zawartości pliku
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numerIdentyfikacyjnyDokumentu" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer identyfikacyjny załączanego dokumentu
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWystawienia" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name " xml:lang="pl">
          Data wystawienia
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Data wystawienia załączonego dokumentu
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis zawartości pliku
        </xs:documentation>
        <xs:documentation source="rule">
          R66
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="350"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="mimeType" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Typ MIME
        </xs:documentation>
        <xs:documentation source="rule">
          R88
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="255"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZarzadzajacyPrzedsiebiorstwemZalacznikA">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Osoba kierująca przedsiębiorstwem wnioskodawcy lub nadzorująca zarządzanie nim (D.3/7)
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresKodPocztowyRequiredType" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres osoby kierującej przedsiębiorstwem
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13, R964
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
        <xs:documentation source="rule">
          R964
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataUrodzenia" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data urodzenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZarzadzajacyPrzedsiebiorstwemZalacznikA2024">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Osoba kierująca przedsiębiorstwem wnioskodawcy lub nadzorująca zarządzanie nim (D.3/7)
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Adres" type="AdresKodPocztowyRequiredType2024" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres osoby kierującej przedsiębiorstwem
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwisko" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R13, R964
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
        <xs:documentation source="rule">
          R964
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
          <xs:minLength value="1"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataUrodzenia" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data urodzenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZezwolenieType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Zezwolenie  w obszarze ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="zezwolenieKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj zezwolenia
        </xs:documentation>
        <xs:documentation source="list" xml:lang="pl">
          034
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="zezwolenieNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="13"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWaznosci" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data ważności zezwolenia.
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZezwolenieType2">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Zezwolenie z warunkami jego udzielenia w obszarze ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WarunkiZezwolenia" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Warunki udzielenia zezwolenia
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="podstawaPrawna" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Podstawa prawna
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="sentencja" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Sentencja
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="uzasadnienie" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Uzasadnienie 
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="10000"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="pouczenie" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Pouczenie
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="zezwolenieKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj zezwolenia.
        </xs:documentation>
        <xs:documentation source="list">
          034
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="zezwolenieNazwa" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zezwolenia
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="13"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWaznosci" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data  ważności zezwolenia
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="status" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Status zezwolenia
        </xs:documentation>
        <xs:documentation source="list">
          1512
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole dla decyzji wydawanych w ramach zarządzania zezwoleniami - automatycznie wypełniane po zmianie statusu przez system po UPD i dodane do komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZgloszenieCelneType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Numer i pozycje zgłoszenia celnego dla postepowań w sprawie naruszeń
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NrPozycji" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation source="name">
            Nr pozycji zgłoszenia celnego
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="nr" use="required">
            <xs:annotation>
              <xs:documentation source="name">
                Nr pozycji towarowej
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:int">
                <xs:totalDigits value="3"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="nrMRN" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr MRN zgłoszenia celnego
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="18"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataMRN" type="xs:date" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data MRN
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ZgodaType">
    <xs:annotation>
      <xs:documentation source="name" xml:lang="pl">
        Zgoda z warunkami udzielenia w obszarze ordynacji podatkowej
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WarunkiZgody">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Warunki udzielenia zgody
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="podstawaPrawna" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Podstawa prawna
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="sentencja" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Sentencja
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="uzasadnienie" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Uzasadnienie 
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="1000"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="pouczenie" use="optional">
            <xs:annotation>
              <xs:documentation source="name" xml:lang="pl">
                Pouczenie
              </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:maxLength value="520"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="zgodaKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod określający rodzaj zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Kod określający rodzaj zgody, stały dla danego rodzaju komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="4"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="zgodaNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Nazwa wydanej zgody
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1024"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="numer" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer zgody
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="13"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dataWaznosci" type="xs:date" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data  ważności zgody
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="status" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Status zgody
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Pole dla decyzji wydawanych w ramach zarządzania zezwoleniami/zgodami - automatycznie wypełniane po zmianie statusu przez system po UPD i dodane do komunikatu.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:annotation>
    <xs:documentation>
      ==========typy wspólne dla dla grup dokumentów
    </xs:documentation>
  </xs:annotation>
  <xs:annotation>
    <xs:documentation>
      ==========Elementy Decyzji
    </xs:documentation>
  </xs:annotation>
</xs:schema>
