<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="UeberlassungAusfuhr" type="UeberlassungAusfuhrERTyp"/>
  <xs:complexType name="AbgangsHandelsmengeERTyp">
    <xs:sequence>
      <xs:element name="Wert" type="n12.3" minOccurs="0"/>
      <xs:element name="Masseinheit" type="an..3" minOccurs="0"/>
      <xs:element name="Qualifikator" type="an..1" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ActiveBorderTransportMeansERType">
    <xs:sequence>
      <xs:element name="TypeOfIdentification" type="an..2" minOccurs="0"/>
      <xs:element name="IdentificationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="Nationality" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalInformationERType">
    <xs:sequence>
      <xs:element name="Code" type="an..5" minOccurs="0"/>
      <xs:element name="Text" type="an..512" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalReferenceEGType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalReferenceERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalReferenceGoodsItemERType">
    <xs:complexContent>
      <xs:extension base="AdditionalReferenceEGType">
        <xs:sequence>
          <xs:element name="Detail" type="an..12" minOccurs="0"/>
          <xs:element name="Currency" type="an..3" minOccurs="0"/>
          <xs:element name="Amount" type="n18.2" minOccurs="0"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="AdditionalSupplyChainActorERType">
    <xs:sequence>
      <xs:element name="Role" type="an..3" minOccurs="0"/>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="Name" type="an..70" minOccurs="0"/>
      <xs:element name="StreetAndNumber" type="an..70" minOccurs="0"/>
      <xs:element name="City" type="an..35" minOccurs="0"/>
      <xs:element name="Postcode" type="an..17" minOccurs="0"/>
      <xs:element name="Country" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AddressERType">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="SubsidiaryNumber" type="n4" minOccurs="0"/>
      <xs:element name="Name" type="an..70" minOccurs="0"/>
      <xs:element name="StreetAndNumber" type="an..70" minOccurs="0"/>
      <xs:element name="City" type="an..35" minOccurs="0"/>
      <xs:element name="Postcode" type="an..17" minOccurs="0"/>
      <xs:element name="Country" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AddressWithContactERType">
    <xs:complexContent>
      <xs:extension base="AddressERType">
        <xs:sequence>
          <xs:element name="ContactPerson" type="ContactPersonERType" minOccurs="0"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:simpleType name="an..1">
    <xs:restriction base="xs:string">
      <xs:maxLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..10">
    <xs:restriction base="xs:string">
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..100">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..11">
    <xs:restriction base="xs:string">
      <xs:maxLength value="11"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..12">
    <xs:restriction base="xs:string">
      <xs:maxLength value="12"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..120">
    <xs:restriction base="xs:string">
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..140">
    <xs:restriction base="xs:string">
      <xs:maxLength value="140"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..17">
    <xs:restriction base="xs:string">
      <xs:maxLength value="17"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..18">
    <xs:restriction base="xs:string">
      <xs:maxLength value="18"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..2">
    <xs:restriction base="xs:string">
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..20">
    <xs:restriction base="xs:string">
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..22">
    <xs:restriction base="xs:string">
      <xs:maxLength value="22"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..24">
    <xs:restriction base="xs:string">
      <xs:maxLength value="24"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..256">
    <xs:restriction base="xs:string">
      <xs:maxLength value="256"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..26">
    <xs:restriction base="xs:string">
      <xs:maxLength value="26"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..27">
    <xs:restriction base="xs:string">
      <xs:maxLength value="27"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..280">
    <xs:restriction base="xs:string">
      <xs:maxLength value="280"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..3">
    <xs:restriction base="xs:string">
      <xs:maxLength value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..35">
    <xs:restriction base="xs:string">
      <xs:maxLength value="35"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..350">
    <xs:restriction base="xs:string">
      <xs:maxLength value="350"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..4">
    <xs:restriction base="xs:string">
      <xs:maxLength value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..42">
    <xs:restriction base="xs:string">
      <xs:maxLength value="42"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..5">
    <xs:restriction base="xs:string">
      <xs:maxLength value="5"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..500M">
    <xs:restriction base="xs:string">
      <xs:maxLength value="500000000"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..512">
    <xs:restriction base="xs:string">
      <xs:maxLength value="512"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..6">
    <xs:restriction base="xs:string">
      <xs:maxLength value="6"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..70">
    <xs:restriction base="xs:string">
      <xs:maxLength value="70"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..700">
    <xs:restriction base="xs:string">
      <xs:maxLength value="700"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..8">
    <xs:restriction base="xs:string">
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..80">
    <xs:restriction base="xs:string">
      <xs:maxLength value="80"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..9">
    <xs:restriction base="xs:string">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AnmelderERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Ansprechpartner" type="AnsprechpartnerERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AnsprechpartnerERTyp">
    <xs:sequence>
      <xs:element name="Sachbearbeiter" type="an..35" minOccurs="0"/>
      <xs:element name="Telefonnummer" type="an..35" minOccurs="0"/>
      <xs:element name="Stellung" type="an..35" minOccurs="0"/>
      <xs:element name="EmailAdresse" type="an..256" minOccurs="0"/>
      <xs:element name="Telefaxnummer" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ApplicationInternalDataAdditionalDetailsDataType">
    <xs:sequence>
      <xs:element name="Key" type="an..35" minOccurs="0"/>
      <xs:element name="Value" type="an..100" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ApplicationInternalDataAdditionalDetailsType">
    <xs:sequence>
      <xs:element name="Data" type="ApplicationInternalDataAdditionalDetailsDataType" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ApplicationInternalDataType">
    <xs:sequence>
      <xs:element name="AdditionalDetails" type="ApplicationInternalDataAdditionalDetailsType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AttachmentERType">
    <xs:sequence>
      <xs:element name="TechnicalContent" type="an..10" minOccurs="0"/>
      <xs:element name="OriginalFilename" type="an..256" minOccurs="0"/>
      <xs:element name="FileFormat" type="an..10" minOccurs="0"/>
      <xs:element name="DataEncoding" type="an..10" minOccurs="0"/>
      <xs:element name="Data" type="an..500M" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AttachmentsERType">
    <xs:sequence>
      <xs:element name="Attachment" type="AttachmentERType" minOccurs="0" maxOccurs="99"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AusfuehrerERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="Identifikationsart" type="an..1" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Ansprechpartner" type="AnsprechpartnerERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AusfuhrerstattungKopfERTyp">
    <xs:sequence>
      <xs:element name="Bestimmungsland" type="an..2" minOccurs="0"/>
      <xs:element name="TextlicheErklaerung" type="an..350" minOccurs="0"/>
      <xs:element name="Antragsart" type="an..2" minOccurs="0"/>
      <xs:element name="Zahlungsweg" type="an..2" minOccurs="0"/>
      <xs:element name="Zustellungsbevollmaechtigter" type="an..2" minOccurs="0"/>
      <xs:element name="Sicherheitskonto" type="an..4" minOccurs="0"/>
      <xs:element name="Klammerungsvorbehalt" type="an..1" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AusfuhrerstattungPositionERTyp">
    <xs:sequence>
      <xs:element name="WarenbezeichnungErgaenzung" type="an..700" minOccurs="0"/>
      <xs:element name="Ursprungsland" type="an..2" minOccurs="0"/>
      <xs:element name="Menge" type="n9.1" minOccurs="0"/>
      <xs:element name="Masseinheit" type="an..3" minOccurs="0"/>
      <xs:element name="Zahlungsfall" type="an..1" minOccurs="0"/>
      <xs:element name="Anpassungskoeffizient" type="n6.4" minOccurs="0"/>
      <xs:element name="AnteilswertA" type="n4.2" minOccurs="0"/>
      <xs:element name="AnteilswertB" type="n4.2" minOccurs="0"/>
      <xs:element name="AnteilswertC" type="n4.2" minOccurs="0"/>
      <xs:element name="AnteilswertD" type="n4.2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AuthorisationERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AuthorisationGoodsItemERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..35" minOccurs="0"/>
      <xs:element name="HolderOfAuthorisation" type="an..17" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BeantragterLadeortERTyp">
    <xs:sequence>
      <xs:element name="OrtID" type="an..4" minOccurs="0"/>
      <xs:element name="Strasse" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..5" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="Zusatz" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BeendigungAVUVERTyp">
    <xs:sequence>
      <xs:element name="AbgleichErfolgt" type="an..1" minOccurs="0"/>
      <xs:element name="AnzahlPositionen" type="n3" minOccurs="0"/>
      <xs:element name="Bewilligungsnummer" type="an..35" minOccurs="0"/>
      <xs:element name="PositionAVUV" type="BeendigungPositionAVUVERTyp" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BeendigungPositionAVUVERTyp">
    <xs:sequence>
      <xs:element name="Positionsnummer" type="n5" minOccurs="0"/>
      <xs:element name="Registriernummer" type="an..35" minOccurs="0"/>
      <xs:element name="KzZugangATLAS" type="an..1" minOccurs="0"/>
      <xs:element name="WarenbezogeneAngaben" type="an..350" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BeendigungPositionZLERTyp">
    <xs:sequence>
      <xs:element name="Positionsnummer" type="n5" minOccurs="0"/>
      <xs:element name="Registriernummer" type="an..35" minOccurs="0"/>
      <xs:element name="Warennummer" type="an..11" minOccurs="0"/>
      <xs:element name="KzUeblicheBehandlung" type="an..1" minOccurs="0"/>
      <xs:element name="KzZugangATLAS" type="an..1" minOccurs="0"/>
      <xs:element name="Zusatz" type="an..100" minOccurs="0"/>
      <xs:element name="Abgangsmenge" type="AbgangsHandelsmengeERTyp" minOccurs="0"/>
      <xs:element name="Handelsmenge" type="AbgangsHandelsmengeERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BeendigungZLERTyp">
    <xs:sequence>
      <xs:element name="AbgleichErfolgt" type="an..1" minOccurs="0"/>
      <xs:element name="AnzahlPositionen" type="n3" minOccurs="0"/>
      <xs:element name="Bewilligungsnummer" type="an..35" minOccurs="0"/>
      <xs:element name="Bezugsnummer" type="an..35" minOccurs="0"/>
      <xs:element name="PositionZL" type="BeendigungPositionZLERTyp" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BefoerderungsmittelERTyp">
    <xs:sequence>
      <xs:element name="ArtCode" type="an..2" minOccurs="0"/>
      <xs:element name="Kennzeichen" type="an..27" minOccurs="0"/>
      <xs:element name="StaatCode" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ContactPersonERType">
    <xs:sequence>
      <xs:element name="Name" type="an..70" minOccurs="0"/>
      <xs:element name="PhoneNumber" type="an..35" minOccurs="0"/>
      <xs:element name="EMailAddress" type="an..256" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CustomsWarehousingERType">
    <xs:sequence>
      <xs:element name="Alignment" type="an..1" minOccurs="0"/>
      <xs:element name="TypeOfAuthorisation" type="an..4" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..35" minOccurs="0"/>
      <xs:element name="LRN" type="an..35" minOccurs="0"/>
      <xs:element name="GoodsReference" type="CustomsWarehousingGoodsReferenceERType" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CustomsWarehousingGoodsReferenceERType">
    <xs:sequence>
      <xs:element name="GoodsItemNumber" type="n5" minOccurs="0"/>
      <xs:element name="MRN" type="an..18" minOccurs="0"/>
      <xs:element name="RegistrationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="CommodityCode" type="an..11" minOccurs="0"/>
      <xs:element name="UsualTreatment" type="an..1" minOccurs="0"/>
      <xs:element name="AccessViaATLAS" type="an..1" minOccurs="0"/>
      <xs:element name="ComplementOfInformation" type="an..100" minOccurs="0"/>
      <xs:element name="GoodsReduction" type="GoodsReductionERType" minOccurs="0"/>
      <xs:element name="GoodsReductionAfterTreatment" type="GoodsReductionAfterTreatmentERType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DatenaustauschExportTyp">
    <xs:sequence>
      <xs:element name="Transaktion" type="TransaktionExportTyp"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DeliveryTermsERType">
    <xs:sequence>
      <xs:element name="IncotermCode" type="an..3" minOccurs="0"/>
      <xs:element name="UNLocode" type="an..17" minOccurs="0"/>
      <xs:element name="Text" type="an..512" minOccurs="0"/>
      <xs:element name="Location" type="an..35" minOccurs="0"/>
      <xs:element name="Country" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DepartureTransportMeansERType">
    <xs:sequence>
      <xs:element name="TypeOfIdentification" type="an..2" minOccurs="0"/>
      <xs:element name="IdentificationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="Nationality" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EinzelUeberlassungTyp">
    <xs:sequence>
      <xs:element name="ObjektIdentifizierung" type="ObjektIdentifizierungERTyp"/>
      <xs:element name="KopfDaten" type="KopfDatenUeberlassungTyp" minOccurs="0"/>
      <xs:element name="WarenPosition" type="PositionUeberlassungTyp" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="ExportOperation" type="ExportOperationERType" minOccurs="0"/>
      <xs:element name="GoodsItem" type="GoodsItemERType" minOccurs="0" maxOccurs="999"/>
      <xs:element name="Attachments" type="AttachmentsERType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EmpfaengerERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="Identifikationsart" type="an..1" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EmpfaengerPositionERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="Identifikationsart" type="an..1" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ErzeugnisERTyp">
    <xs:sequence>
      <xs:element name="ErzeugnisWarennummer" type="an..8" minOccurs="0"/>
      <xs:element name="ErzeugnisWarenbezeichnung" type="an..280" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExportOperationERType">
    <xs:sequence>
      <xs:element name="DeclarationType" type="an..5" minOccurs="0"/>
      <xs:element name="AdditionalDeclarationType" type="an..1" minOccurs="0"/>
      <xs:element name="ExportDeclarationType" type="an..8" minOccurs="0"/>
      <xs:element name="MRN" type="an..18" minOccurs="0"/>
      <xs:element name="CountryOfDestination" type="an..2" minOccurs="0"/>
      <xs:element name="CountryOfExport" type="an..2" minOccurs="0"/>
      <xs:element name="DeclarationRecordationDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="DeclarationAcceptanceDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="ExitDate" type="xs:date" minOccurs="0"/>
      <xs:element name="ReleaseDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="DecisiveDate" type="xs:date" minOccurs="0"/>
      <xs:element name="ContainerIndicator" type="an..1" minOccurs="0"/>
      <xs:element name="PartyConstellation" type="an..4" minOccurs="0"/>
      <xs:element name="Security" type="an..1" minOccurs="0"/>
      <xs:element name="GrossMass" type="n19.3" minOccurs="0"/>
      <xs:element name="RegistrationNumberExternal" type="an..70" minOccurs="0"/>
      <xs:element name="InlandModeOfTransport" type="an..1" minOccurs="0"/>
      <xs:element name="DepartureTransportMeans" type="DepartureTransportMeansERType" minOccurs="0" maxOccurs="999"/>
      <xs:element name="ModeOfTransportAtTheBorder" type="an..1" minOccurs="0"/>
      <xs:element name="ActiveBorderTransportMeans" type="ActiveBorderTransportMeansERType" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfExport" type="an..8" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfSupplement" type="an..8" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfExitDeclared" type="an..8" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfExitActual" type="an..8" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfPresentation" type="an..8" minOccurs="0"/>
      <xs:element name="Authorisation" type="AuthorisationERType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="ContractualPartner" type="AddressERType" minOccurs="0"/>
      <xs:element name="AdditionalSupplyChainActor" type="AdditionalSupplyChainActorERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Carrier" type="AddressERType" minOccurs="0"/>
      <xs:element name="NatureOfTransaction" type="an..2" minOccurs="0"/>
      <xs:element name="TotalAmountInvoiced" type="n18.2" minOccurs="0"/>
      <xs:element name="InvoiceCurrency" type="an..3" minOccurs="0"/>
      <xs:element name="SpecificCircumstanceIndicator" type="an..3" minOccurs="0"/>
      <xs:element name="TransportCharges" type="an..1" minOccurs="0"/>
      <xs:element name="ReferenceNumberUCR" type="an..70" minOccurs="0"/>
      <xs:element name="Exporter" type="AddressERType" minOccurs="0"/>
      <xs:element name="Consignee" type="AddressERType" minOccurs="0"/>
      <xs:element name="Declarant" type="AddressWithContactERType" minOccurs="0"/>
      <xs:element name="Representative" type="AddressWithContactERType" minOccurs="0"/>
      <xs:element name="SubContractor" type="AddressERType" minOccurs="0"/>
      <xs:element name="Consignor" type="AddressERType" minOccurs="0"/>
      <xs:element name="DeliveryTerms" type="DeliveryTermsERType" minOccurs="0"/>
      <xs:element name="FileNameOfExportAccompanyingDocument" type="an..80" minOccurs="0"/>
      <xs:element name="CountryOfRoutingOfConsignment" type="an..2" minOccurs="0" maxOccurs="99"/>
      <xs:element name="OutwardProcessing" type="OutwardProcessingERType" minOccurs="0"/>
      <xs:element name="PreviousDocument" type="PreviousDocumentERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="SupportingDocument" type="SupportingDocumentERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalReference" type="AdditionalReferenceERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalInformation" type="AdditionalInformationERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="TransportEquipment" type="TransportEquipmentERType" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="TransportDocument" type="TransportDocumentERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="LocationOfGoods" type="LocationOfGoodsERType" minOccurs="0"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsItemERType">
    <xs:sequence>
      <xs:element name="DeclarationGoodsItemNumber" type="n3" minOccurs="0"/>
      <xs:element name="HarmonizedSystemSubHeadingCode" type="an..6" minOccurs="0"/>
      <xs:element name="CombinedNomenclatureCode" type="an..2" minOccurs="0"/>
      <xs:element name="TaricAdditionalCode" type="an..4" minOccurs="0" maxOccurs="99"/>
      <xs:element name="CusCode" type="an..9" minOccurs="0"/>
      <xs:element name="DescriptionOfGoods" type="an..512" minOccurs="0"/>
      <xs:element name="RegistrationNumberExternal" type="an..70" minOccurs="0"/>
      <xs:element name="ReferenceNumberUCR" type="an..70" minOccurs="0"/>
      <xs:element name="CountryOfOrigin" type="an..2" minOccurs="0"/>
      <xs:element name="CountryOfExport" type="an..2" minOccurs="0"/>
      <xs:element name="RegionOfDispatch" type="an..9" minOccurs="0"/>
      <xs:element name="NetMass" type="n22.6" minOccurs="0"/>
      <xs:element name="GrossMass" type="n19.3" minOccurs="0"/>
      <xs:element name="OriginalGoodsItemNumber" type="n3" minOccurs="0"/>
      <xs:element name="UNNumber" type="an..4" minOccurs="0" maxOccurs="99"/>
      <xs:element name="TransportCharges" type="an..1" minOccurs="0"/>
      <xs:element name="Procedure" type="ProcedureERType" minOccurs="0"/>
      <xs:element name="SupplementaryUnits" type="n22.6" minOccurs="0"/>
      <xs:element name="StatisticalValue" type="n18.2" minOccurs="0"/>
      <xs:element name="PreviousDocument" type="PreviousDocumentGoodsItemERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Packaging" type="PackagingERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="SupportingDocument" type="SupportingDocumentGoodsItemERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="TransportDocument" type="TransportDocumentERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalReference" type="AdditionalReferenceGoodsItemERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalInformation" type="AdditionalInformationERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Consignee" type="AddressERType" minOccurs="0"/>
      <xs:element name="Consignor" type="AddressERType" minOccurs="0"/>
      <xs:element name="AdditionalSupplyChainActor" type="AdditionalSupplyChainActorERType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ProcedureTransference" type="ProcedureTransferenceERType" minOccurs="0"/>
      <xs:element name="NatureOfTransaction" type="an..2" minOccurs="0"/>
      <xs:element name="Authorisation" type="AuthorisationGoodsItemERType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="OutwardProcessing" type="OutwardProcessingGoodsItemERType" minOccurs="0"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsReductionAfterTreatmentERType">
    <xs:sequence>
      <xs:element name="Quantity" type="n12.3" minOccurs="0"/>
      <xs:element name="MeasurementUnit" type="an..3" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..1" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsReductionERType">
    <xs:sequence>
      <xs:element name="Quantity" type="n12.3" minOccurs="0"/>
      <xs:element name="MeasurementUnit" type="an..3" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..1" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="IdentificationMeansERType">
    <xs:sequence>
      <xs:element name="Type" type="an..1" minOccurs="0"/>
      <xs:element name="Description" type="an..350" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="InhaltsstoffERTyp">
    <xs:sequence>
      <xs:element name="TextlicheErklaerung" type="an..350" minOccurs="0"/>
      <xs:element name="Lizenznummer" type="an..18" minOccurs="0"/>
      <xs:element name="AnteilGHT" type="n7.3" minOccurs="0"/>
      <xs:element name="Anteilsmenge" type="n9.1" minOccurs="0"/>
      <xs:element name="HerstellerErklaerungsnummer" type="an..24" minOccurs="0"/>
      <xs:element name="Schluesselnummer" type="an..10" minOccurs="0"/>
      <xs:element name="Umrechnungsfaktor1" type="n7.4" minOccurs="0"/>
      <xs:element name="Umrechnungsfaktor1Kz" type="an..1" minOccurs="0"/>
      <xs:element name="Umrechnungsfaktor2" type="n7.4" minOccurs="0"/>
      <xs:element name="UmrechnungsfaktorSatz" type="n7.4" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="InwardProcessingERType">
    <xs:sequence>
      <xs:element name="Alignment" type="an..1" minOccurs="0"/>
      <xs:element name="SimplyGrantedAuthorisation" type="an..1" minOccurs="0"/>
      <xs:element name="TypeOfAuthorisation" type="an..4" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..35" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfSupervision" type="an..8" minOccurs="0"/>
      <xs:element name="GoodsReference" type="InwardProcessingGoodsReferenceERType" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="InwardProcessingGoodsReferenceERType">
    <xs:sequence>
      <xs:element name="GoodsItemNumber" type="n5" minOccurs="0"/>
      <xs:element name="MRN" type="an..18" minOccurs="0"/>
      <xs:element name="RegistrationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="AccessViaATLAS" type="an..1" minOccurs="0"/>
      <xs:element name="GoodsRelatedData" type="an..350" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="KopfDatenUeberlassungTyp">
    <xs:sequence>
      <xs:element name="AnmeldeArtAusfuhrCode" type="an..2" minOccurs="0"/>
      <xs:element name="AnmeldeArtVerfahrenCode" type="an..2" minOccurs="0"/>
      <xs:element name="AnmeldeArtUeberfuehrungCode" type="an..1" minOccurs="0"/>
      <xs:element name="MovementReferenceNumber" type="an..18" minOccurs="0"/>
      <xs:element name="BestimmungslandCode" type="an..2" minOccurs="0"/>
      <xs:element name="AusfuhrlandCode" type="an..2" minOccurs="0"/>
      <xs:element name="EntgegennahmeDatumZeit" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="AnnahmeDatumZeit" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="DatumAusgang" type="xs:date" minOccurs="0"/>
      <xs:element name="UeberlassungDatumZeit" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="MassgeblichesDatum" type="xs:date" minOccurs="0"/>
      <xs:element name="ContainerIndikator" type="an..1" minOccurs="0"/>
      <xs:element name="BeteiligtenKonstellation" type="an..4" minOccurs="0"/>
      <xs:element name="GesamtRohMasse" type="n14.3" minOccurs="0"/>
      <xs:element name="RegistrierNummerFremdSystem" type="an..70" minOccurs="0"/>
      <xs:element name="AnzahlPackStuecke" type="n7" minOccurs="0"/>
      <xs:element name="AnzahlPositionen" type="n3" minOccurs="0"/>
      <xs:element name="VerkehrszweigInland" type="an..2" minOccurs="0"/>
      <xs:element name="BefoerderungsmittelAbgang" type="BefoerderungsmittelERTyp" minOccurs="0"/>
      <xs:element name="VerkehrszweigGrenze" type="an..2" minOccurs="0"/>
      <xs:element name="BefoerderungsmittelGrenze" type="BefoerderungsmittelERTyp" minOccurs="0"/>
      <xs:element name="AusfuhrZollstelleID" type="an..8" minOccurs="0"/>
      <xs:element name="AusfuhrZollstelleErgaenzungID" type="an..8" minOccurs="0"/>
      <xs:element name="AusgangZollstelleID" type="an..8" minOccurs="0"/>
      <xs:element name="TatsaechlicheAusgangZollstelleID" type="an..8" minOccurs="0"/>
      <xs:element name="BewilligungsnummerAnschreibeverfahren" type="an..35" minOccurs="0"/>
      <xs:element name="BewilligungsnummerPassiveVeredelung" type="an..35" minOccurs="0"/>
      <xs:element name="BewilligungsnummerVertrauenswuerdigerAusfuehrer" type="an..35" minOccurs="0"/>
      <xs:element name="BewilligungsnummerAusfuhr" type="an..35" minOccurs="0"/>
      <xs:element name="BeantragterLadeort" type="BeantragterLadeortERTyp" minOccurs="0"/>
      <xs:element name="GeschaeftArtCode" type="an..2" minOccurs="0"/>
      <xs:element name="Rechnungspreis" type="n17.2" minOccurs="0"/>
      <xs:element name="Rechnungswaehrung" type="an..3" minOccurs="0"/>
      <xs:element name="BesondereUmstaende" type="an..1" minOccurs="0"/>
      <xs:element name="BefoerderungskostenZahlungsweise" type="an..1" minOccurs="0"/>
      <xs:element name="KennnummerSendung" type="an..70" minOccurs="0"/>
      <xs:element name="BesondererTatbestand" type="n..1" minOccurs="0" maxOccurs="9"/>
      <xs:element name="Verschluss" type="VerschluesseERTyp" minOccurs="0"/>
      <xs:element name="Ausfuehrer" type="AusfuehrerERTyp" minOccurs="0"/>
      <xs:element name="Empfaenger" type="EmpfaengerERTyp" minOccurs="0"/>
      <xs:element name="Anmelder" type="AnmelderERTyp" minOccurs="0"/>
      <xs:element name="VertreterAnmelder" type="VertreterAnmelderERTyp" minOccurs="0"/>
      <xs:element name="SubUnternehmer" type="SubUnternehmerERTyp" minOccurs="0"/>
      <xs:element name="VerfahrensinhaberPV" type="VerfahrensinhaberPVERTyp" minOccurs="0"/>
      <xs:element name="Lieferbedingung" type="LieferbedingungERTyp" minOccurs="0"/>
      <xs:element name="Ausfuhrerstattung" type="AusfuhrerstattungKopfERTyp" minOccurs="0"/>
      <xs:element name="DateinameExportbegleitdokument" type="an..80" minOccurs="0"/>
      <xs:element name="BefoerderungsrouteLand" type="an..2" minOccurs="0" maxOccurs="99"/>
      <xs:element name="WiedereinfuhrDatum" type="xs:date" minOccurs="0"/>
      <xs:element name="Standardaustausch" type="an..1" minOccurs="0"/>
      <xs:element name="Wiedereinfuhrland" type="an..2" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Naemlichkeit" type="NaemlichkeitERTyp" minOccurs="0" maxOccurs="8"/>
      <xs:element name="Erzeugnis" type="ErzeugnisERTyp" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LieferbedingungERTyp">
    <xs:sequence>
      <xs:element name="IncotermCode" type="an..3" minOccurs="0"/>
      <xs:element name="IncotermText" type="an..140" minOccurs="0"/>
      <xs:element name="IncotermOrt" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LocationOfGoodsAddressERType">
    <xs:sequence>
      <xs:element name="ComplementOfInformation" type="an..35" minOccurs="0"/>
      <xs:element name="StreetAndNumber" type="an..70" minOccurs="0"/>
      <xs:element name="City" type="an..35" minOccurs="0"/>
      <xs:element name="Postcode" type="an..17" minOccurs="0"/>
      <xs:element name="Country" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LocationOfGoodsERType">
    <xs:sequence>
      <xs:element name="TypeOfLocation" type="an..1" minOccurs="0"/>
      <xs:element name="QualifierOfIdentification" type="an..1" minOccurs="0"/>
      <xs:element name="AuthorisationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="AdditionalIdentifier" type="an..4" minOccurs="0"/>
      <xs:element name="UNLocode" type="an..17" minOccurs="0"/>
      <xs:element name="Latitude" type="an..17" minOccurs="0"/>
      <xs:element name="Longitude" type="an..17" minOccurs="0"/>
      <xs:element name="Address" type="LocationOfGoodsAddressERType" minOccurs="0"/>
      <xs:element name="ContactPerson" type="ContactPersonERType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="n..1">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,1}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..3">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,3}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..4">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,4}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..5">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,5}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n12.3">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{9}\.\d{3}"/>
      <xs:maxInclusive value="999999999.999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="12"/>
      <xs:fractionDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n13">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{13}"/>
      <xs:totalDigits value="13"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n14.3">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{11}\.\d{3}"/>
      <xs:maxInclusive value="99999999999.999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="14"/>
      <xs:fractionDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n15.3">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{12}\.\d{3}"/>
      <xs:maxInclusive value="9999999999999.999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="15"/>
      <xs:fractionDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n16.7">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{9}\.\d{7}"/>
      <xs:maxInclusive value="999999999.9999999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="16"/>
      <xs:fractionDigits value="7"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n17.2">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{15}\.\d{2}"/>
      <xs:maxInclusive value="999999999999999.99"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="17"/>
      <xs:fractionDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n18.2">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{16}\.\d{2}"/>
      <xs:maxInclusive value="9999999999999999.99"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="18"/>
      <xs:fractionDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n19.3">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{16}\.\d{3}"/>
      <xs:maxInclusive value="9999999999999999.999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="19"/>
      <xs:fractionDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n2">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{2}"/>
      <xs:totalDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n22.6">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{16}\.\d{6}"/>
      <xs:maxInclusive value="9999999999999999.999999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="22"/>
      <xs:fractionDigits value="6"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n23.7">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{16}\.\d{7}"/>
      <xs:maxInclusive value="9999999999999999.9999999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="23"/>
      <xs:fractionDigits value="7"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n3">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{3}"/>
      <xs:totalDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n4">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{4}"/>
      <xs:totalDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n4.2">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{2}\.\d{2}"/>
      <xs:maxInclusive value="99.99"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="4"/>
      <xs:fractionDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n5">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{5}"/>
      <xs:totalDigits value="5"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n6.4">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{2}\.\d{4}"/>
      <xs:maxInclusive value="99.9999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="6"/>
      <xs:fractionDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n7">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{7}"/>
      <xs:totalDigits value="7"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n7.3">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{4}\.\d{3}"/>
      <xs:maxInclusive value="9999.999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="7"/>
      <xs:fractionDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n7.4">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{3}\.\d{4}"/>
      <xs:maxInclusive value="999.9999"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="7"/>
      <xs:fractionDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n8">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{8}"/>
      <xs:totalDigits value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n9">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{9}"/>
      <xs:totalDigits value="9"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n9.1">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="\d{8}\.\d{1}"/>
      <xs:maxInclusive value="99999999.9"/>
      <xs:minInclusive value="0"/>
      <xs:totalDigits value="9"/>
      <xs:fractionDigits value="1"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="NaemlichkeitERTyp">
    <xs:sequence>
      <xs:element name="Art" type="an..1" minOccurs="0"/>
      <xs:element name="Beschreibung" type="an..350" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ObjektIdentifizierungERTyp">
    <xs:sequence>
      <xs:element name="ObjektName" type="an..22"/>
      <xs:element name="EDIFACTNachrichtenNr" type="an..35"/>
      <xs:element name="ZeitpunktEingang" type="xs:dateTime"/>
      <xs:element name="ShipmentReferenz" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="OutwardProcessingERType">
    <xs:sequence>
      <xs:element name="CountryOfReimport" type="an..2" minOccurs="0" maxOccurs="99"/>
      <xs:element name="IdentificationMeans" type="IdentificationMeansERType" minOccurs="0" maxOccurs="7"/>
      <xs:element name="Product" type="ProductERType" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="OutwardProcessingGoodsItemERType">
    <xs:sequence>
      <xs:element name="ReimportDate" type="xs:date" minOccurs="0"/>
      <xs:element name="Replacement" type="an..1" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PackagingERType">
    <xs:sequence>
      <xs:element name="NumberOfPackages" type="n8" minOccurs="0"/>
      <xs:element name="SequenceNumber" type="n2" minOccurs="0"/>
      <xs:element name="TypeOfPackages" type="an..2" minOccurs="0"/>
      <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
      <xs:element name="PackageReference" type="n3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PackstueckERTyp">
    <xs:sequence>
      <xs:element name="Anzahl" type="n5" minOccurs="0"/>
      <xs:element name="LaufendeNummer" type="n2" minOccurs="0"/>
      <xs:element name="VerpackungsartCode" type="an..3" minOccurs="0"/>
      <xs:element name="Kennzeichnung" type="an..42" minOccurs="0"/>
      <xs:element name="PositionHauptpack" type="n3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PositionUeberlassungTyp">
    <xs:sequence>
      <xs:element name="Positionsnummer" type="n3" minOccurs="0"/>
      <xs:element name="WarenNummerKN8" type="an..8" minOccurs="0"/>
      <xs:element name="WarenNummerTARIC" type="an..2" minOccurs="0"/>
      <xs:element name="WarenNummerZusatz1" type="an..4" minOccurs="0"/>
      <xs:element name="WarenNummerZusatz2" type="an..4" minOccurs="0"/>
      <xs:element name="WarenNummerNational" type="an..4" minOccurs="0"/>
      <xs:element name="WarenBezeichnung" type="an..280" minOccurs="0"/>
      <xs:element name="RegistrierNummerFremdSystem" type="an..70" minOccurs="0"/>
      <xs:element name="KennnummerSendung" type="an..70" minOccurs="0"/>
      <xs:element name="UrsprungslandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Eigenmasse" type="n14.3" minOccurs="0"/>
      <xs:element name="Rohmasse" type="n14.3" minOccurs="0"/>
      <xs:element name="OriginalePositionsnummer" type="n..3" minOccurs="0"/>
      <xs:element name="Gefahrgutnummer" type="an..4" minOccurs="0"/>
      <xs:element name="BefoerderungskostenZahlungsweise" type="an..1" minOccurs="0"/>
      <xs:element name="Verfahren" type="VerfahrenERTyp" minOccurs="0"/>
      <xs:element name="AusfuhrerstattungVerfahrenscode" type="an..3" minOccurs="0"/>
      <xs:element name="Menge" type="n15.3" minOccurs="0"/>
      <xs:element name="Wert" type="n13" minOccurs="0"/>
      <xs:element name="Vorpapier" type="VorpapierERTyp" minOccurs="0" maxOccurs="9"/>
      <xs:element name="Packstueck" type="PackstueckERTyp" maxOccurs="99"/>
      <xs:element name="ContainerNummer" type="an..17" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Unterlage" type="UnterlageERTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Ausfuhrerstattung" type="AusfuhrerstattungPositionERTyp" minOccurs="0"/>
      <xs:element name="Inhaltsstoff" type="InhaltsstoffERTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Empfaenger" type="EmpfaengerPositionERTyp" minOccurs="0"/>
      <xs:element name="BeendigungZL" type="BeendigungZLERTyp" minOccurs="0"/>
      <xs:element name="BeendigungAVUV" type="BeendigungAVUVERTyp" minOccurs="0"/>
      <xs:element name="IncotermCode" type="an..3" minOccurs="0"/>
      <xs:element name="IncotermText" type="an..140" minOccurs="0"/>
      <xs:element name="IncotermOrt" type="an..35" minOccurs="0"/>
      <xs:element name="GeschaeftArtCode" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PreviousDocumentERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PreviousDocumentGoodsItemERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
      <xs:element name="GoodsItemNumber" type="n5" minOccurs="0"/>
      <xs:element name="MeasurementUnitAndQualifier" type="an..4" minOccurs="0"/>
      <xs:element name="Quantity" type="n22.6" minOccurs="0"/>
      <xs:element name="ComplementOfInformation" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProcedureERType">
    <xs:sequence>
      <xs:element name="RequestedProcedure" type="an..2" minOccurs="0"/>
      <xs:element name="PreviousProcedure" type="an..2" minOccurs="0"/>
      <xs:element name="AdditionalProcedure" type="an..3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProcedureTransferenceERType">
    <xs:sequence>
      <xs:element name="CustomsWarehousing" type="CustomsWarehousingERType" minOccurs="0"/>
      <xs:element name="InwardProcessing" type="InwardProcessingERType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProductERType">
    <xs:sequence>
      <xs:element name="CommodityCode" type="an..8" minOccurs="0"/>
      <xs:element name="DescriptionOfGoods" type="an..512" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SubUnternehmerERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Ansprechpartner" type="AnsprechpartnerERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SupportingDocumentEGType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
      <xs:element name="DocumentLineItemNumber" type="n..5" minOccurs="0"/>
      <xs:element name="IssuingAuthorityName" type="an..70" minOccurs="0"/>
      <xs:element name="IssuingDate" type="xs:date" minOccurs="0"/>
      <xs:element name="ValidityDate" type="xs:date" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SupportingDocumentERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
      <xs:element name="DocumentLineItemNumber" type="n5" minOccurs="0"/>
      <xs:element name="IssuingAuthorityName" type="an..70" minOccurs="0"/>
      <xs:element name="IssuingDate" type="xs:date" minOccurs="0"/>
      <xs:element name="ValidityDate" type="xs:date" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SupportingDocumentGoodsItemERType">
    <xs:complexContent>
      <xs:extension base="SupportingDocumentEGType">
        <xs:sequence>
          <xs:element name="ComplementOfInformation" type="an..35" minOccurs="0"/>
          <xs:element name="Detail" type="an..12" minOccurs="0"/>
          <xs:element name="Amount" type="n18.2" minOccurs="0"/>
          <xs:element name="Currency" type="an..3" minOccurs="0"/>
          <xs:element name="MeasurementUnitAndQualifier" type="an..4" minOccurs="0"/>
          <xs:element name="ComplementaryUnit" type="an..10" minOccurs="0"/>
          <xs:element name="Quantity" type="n23.7" minOccurs="0"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="TransaktionExportTyp">
    <xs:sequence>
      <xs:element name="IOPartner" type="an..100"/>
      <xs:element name="IODivision1" type="an..10" minOccurs="0"/>
      <xs:element name="IODivision2" type="an..10" minOccurs="0"/>
      <xs:element name="IODivision3" type="an..10" minOccurs="0"/>
      <xs:element name="IOReferenz" type="an..35"/>
      <xs:element name="IODatumZeit" type="xs:dateTime"/>
      <xs:element name="Version" type="n3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportDocumentERType">
    <xs:sequence>
      <xs:element name="Type" type="an..4" minOccurs="0"/>
      <xs:element name="Qualifier" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenceNumber" type="an..70" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportEquipmentERType">
    <xs:sequence>
      <xs:element name="NumberOfSeals" type="n2" minOccurs="0"/>
      <xs:element name="Seal" type="an..20" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="GoodsReference" type="n3" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="UeberlassungAusfuhrERTyp">
    <xs:complexContent>
      <xs:extension base="DatenaustauschExportTyp">
        <xs:sequence>
          <xs:element name="EinzelUeberlassung" type="EinzelUeberlassungTyp" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="UnterlageERTyp">
    <xs:sequence>
      <xs:element name="TypCode" type="an..4" minOccurs="0"/>
      <xs:element name="QualifierCode" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenzID" type="an..35" minOccurs="0"/>
      <xs:element name="Zusatz" type="an..35" minOccurs="0"/>
      <xs:element name="DatumAusstellung" type="xs:date" minOccurs="0"/>
      <xs:element name="DatumEndeGueltigkeit" type="xs:date" minOccurs="0"/>
      <xs:element name="Detail" type="an..12" minOccurs="0"/>
      <xs:element name="Wert" type="n9" minOccurs="0"/>
      <xs:element name="Masseinheit" type="an..10" minOccurs="0"/>
      <xs:element name="Abschreibungsmenge" type="n16.7" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="VerfahrenERTyp">
    <xs:sequence>
      <xs:element name="VerfahrenAngemeldetCode" type="an..2" minOccurs="0"/>
      <xs:element name="VerfahrenVorangegangenCode" type="an..2" minOccurs="0"/>
      <xs:element name="VerfahrenNationalCode" type="an..3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="VerfahrensinhaberPVERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Ansprechpartner" type="AnsprechpartnerERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="VerschluesseERTyp">
    <xs:sequence>
      <xs:element name="ArtCode" type="an..1" minOccurs="0"/>
      <xs:element name="Anzahl" type="n4" minOccurs="0"/>
      <xs:element name="Zeichen" type="an..20" minOccurs="0" maxOccurs="9999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="VertreterAnmelderERTyp">
    <xs:sequence>
      <xs:element name="TeilnehmerEORI" type="an..17" minOccurs="0"/>
      <xs:element name="TeilnehmerNLNR" type="n..4" minOccurs="0"/>
      <xs:element name="Name" type="an..120" minOccurs="0"/>
      <xs:element name="Strasse" type="an..70" minOccurs="0"/>
      <xs:element name="Ort" type="an..35" minOccurs="0"/>
      <xs:element name="PLZ" type="an..9" minOccurs="0"/>
      <xs:element name="LandCode" type="an..2" minOccurs="0"/>
      <xs:element name="Ansprechpartner" type="AnsprechpartnerERTyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="VorpapierERTyp">
    <xs:sequence>
      <xs:element name="TypCode" type="an..3" minOccurs="0"/>
      <xs:element name="ReferenzID" type="an..35" minOccurs="0"/>
      <xs:element name="Zusatz" type="an..26" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
