<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="DataEXITDE" type="DatenZumAusgangXDTyp">
    <xs:annotation>
      <xs:documentation>Version 005 - Release 003</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="AdditionalReferencePositionXDTyp">
    <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: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..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..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..4">
    <xs:restriction base="xs:string">
      <xs:maxLength value="4"/>
    </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..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..8">
    <xs:restriction base="xs:string">
      <xs:maxLength value="8"/>
    </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="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="AusfuehrerKopfXDTyp">
    <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="AusfuehrerPositionXDTyp">
    <xs:sequence>
      <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="BefoerdererKopfXDTyp">
    <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="DatenaustauschExportTyp">
    <xs:sequence>
      <xs:element name="Transaktion" type="TransaktionExportTyp"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DatenZumAusgangXDTyp">
    <xs:complexContent>
      <xs:extension base="DatenaustauschExportTyp">
        <xs:sequence>
          <xs:element name="ResponseData" type="EinzelDatenZumAusgangTyp" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="EinzelDatenZumAusgangTyp">
    <xs:sequence>
      <xs:element name="ObjektIdentifizierung" type="ObjektIdentifizierungXDTyp"/>
      <xs:element name="HeaderData" type="KopfDatenZumAusgangTyp" minOccurs="0"/>
      <xs:element name="GoodsItem" type="PositionDatenZumAusgang" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EmpfaengerKopfXDTyp">
    <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="EmpfaengerXDTyp">
    <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="KopfDatenZumAusgangTyp">
    <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="Security" type="an..1" minOccurs="0"/>
      <xs:element name="MRN" type="an..18" minOccurs="0"/>
      <xs:element name="LRN" type="an..22" minOccurs="0"/>
      <xs:element name="ContainerIndicator" 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="CustomsOfficeOfExport" type="an..8" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfExitActual" type="an..8" minOccurs="0"/>
      <xs:element name="ExitCarrier" type="SpediteurXDTyp" minOccurs="0"/>
      <xs:element name="Exporter" type="AusfuehrerKopfXDTyp" minOccurs="0"/>
      <xs:element name="CountryOfDestination" type="an..2" minOccurs="0"/>
      <xs:element name="SupportingDocument" type="UnterlageKopfXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalReference" type="SonstigerVerweisKopfXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ReferenceNumberUCR" type="an..70" minOccurs="0"/>
      <xs:element name="Carrier" type="BefoerdererKopfXDTyp" minOccurs="0"/>
      <xs:element name="Consignee" type="EmpfaengerKopfXDTyp" minOccurs="0"/>
      <xs:element name="TransportEquipment" type="TransportAusruestungXDTyp" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="TransportDocument" type="TransportDokumentXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <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="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="n5">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{5}"/>
      <xs:totalDigits value="5"/>
    </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:complexType name="ObjektIdentifizierungXDTyp">
    <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="PackstueckXDTyp">
    <xs:sequence>
      <xs:element name="NumberOfPackages" type="n8" minOccurs="0"/>
      <xs:element name="TypeOfPackages" type="an..2" minOccurs="0"/>
      <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
      <xs:element name="DeclarationGoodsItemNumber" type="n3" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PositionDatenZumAusgang">
    <xs:sequence>
      <xs:element name="GoodsItemNumber" 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="CountryOfDestination" type="an..2" minOccurs="0"/>
      <xs:element name="NetMass" type="n22.6" minOccurs="0"/>
      <xs:element name="GrossMass" type="n19.3" minOccurs="0"/>
      <xs:element name="UNDGNumber" type="an..4" minOccurs="0" maxOccurs="99"/>
      <xs:element name="Procedure" type="VerfahrenXDTyp" minOccurs="0"/>
      <xs:element name="Exporter" type="AusfuehrerPositionXDTyp" minOccurs="0"/>
      <xs:element name="Consignee" type="EmpfaengerXDTyp" minOccurs="0"/>
      <xs:element name="Packaging" type="PackstueckXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="SupportingDocument" type="UnterlagePositionXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalReference" type="AdditionalReferencePositionXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="TransportDocument" type="TransportDokumentPositionXDTyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SonstigerVerweisKopfXDTyp">
    <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="SpediteurXDTyp">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="SubsidiaryNumber" type="n4" minOccurs="0"/>
    </xs:sequence>
  </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="TransportAusruestungXDTyp">
    <xs:sequence>
      <xs:element name="NumberOfSeals" type="n2" minOccurs="0"/>
      <xs:element name="SealIdentifier" type="an..20" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="GoodsItemReference" type="n3" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportDokumentPositionXDTyp">
    <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="TransportDokumentXDTyp">
    <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="UnterlageKopfXDTyp">
    <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="UnterlagePositionXDTyp">
    <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="VerfahrenXDTyp">
    <xs:sequence>
      <xs:element name="RequestedProcedure" type="an..2" minOccurs="0"/>
      <xs:element name="PreviousProcedure" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
