<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="InformationEXITDE" type="InformationenZumAusgangXITyp">
    <xs:annotation>
      <xs:documentation>Version 003 - Release 004</xs:documentation>
    </xs:annotation>
  </xs:element>
  <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..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..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..512">
    <xs:restriction base="xs:string">
      <xs:maxLength value="512"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..70">
    <xs:restriction base="xs:string">
      <xs:maxLength value="70"/>
    </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="BefoerderungsmittelGrenzeKopfXITyp">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="TypeOfIdentification" type="an..2" minOccurs="0"/>
      <xs:element name="Nationality" type="an..2" minOccurs="0"/>
      <xs:element name="DepartureDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="Location" type="an..140" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BefoerderungsmittelGrenzePackstueckXITyp">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="TypeOfIdentification" type="an..2" minOccurs="0"/>
      <xs:element name="Nationality" type="an..2" minOccurs="0"/>
      <xs:element name="DepartureDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="Location" type="an..140" minOccurs="0" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BefoerderungsmittelGrenzePositionXITyp">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..35" minOccurs="0"/>
      <xs:element name="TypeOfIdentification" type="an..2" minOccurs="0"/>
      <xs:element name="Nationality" type="an..2" minOccurs="0"/>
      <xs:element name="DepartureDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="Location" type="an..140" minOccurs="0" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DatenaustauschExportTyp">
    <xs:sequence>
      <xs:element name="Transaktion" type="TransaktionExportTyp"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EinzelInformationenZumAusgangTyp">
    <xs:sequence>
      <xs:element name="ObjektIdentifizierung" type="ObjektIdentifizierungXITyp"/>
      <xs:element name="HeaderData" type="KopfDatenInformationenZumAusgangTyp" minOccurs="0"/>
      <xs:element name="GoodsItem" type="PositionInformationZumAusgangTyp" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="InformationenZumAusgangXITyp">
    <xs:complexContent>
      <xs:extension base="DatenaustauschExportTyp">
        <xs:sequence>
          <xs:element name="DeclarationData" type="EinzelInformationenZumAusgangTyp" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="KopfDatenInformationenZumAusgangTyp">
    <xs:sequence>
      <xs:element name="InformationType" type="an..2" minOccurs="0"/>
      <xs:element name="Finalization" type="an..1" minOccurs="0"/>
      <xs:element name="RegistrationNumberExternal" type="an..70" minOccurs="0"/>
      <xs:element name="ReferenceNumberUCR" type="an..35" minOccurs="0"/>
      <xs:element name="ModeOfTransportAtTheBorder" type="an..1" minOccurs="0"/>
      <xs:element name="ActiveBorderTransportMeans" type="BefoerderungsmittelGrenzeKopfXITyp" minOccurs="0"/>
      <xs:element name="ExitCarrier" type="SpediteurXITyp" minOccurs="0"/>
      <xs:element name="TransportEquipment" type="TransportausruestungXITyp" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="n..19.3">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,16}([.,]\d{0,3}(0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..2">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,2}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..22.6">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,16}([.,]\d{0,6}(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..8">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)\d{0,8}([.,](0*))?( *)"/>
    </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:complexType name="ObjektIdentifizierungXITyp">
    <xs:sequence>
      <xs:element name="ObjektName" type="an..22"/>
      <xs:element name="ObjektAktion" type="an..10" maxOccurs="10"/>
      <xs:element name="CompliancePruefung" type="an..3" minOccurs="0"/>
      <xs:element name="Bearbeiter" type="an..70"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PackstueckXITyp">
    <xs:sequence>
      <xs:element name="SequenceNumber" type="n..2" minOccurs="0"/>
      <xs:element name="NumberOfPackages" type="n..8" minOccurs="0"/>
      <xs:element name="TypeOfPackages" type="an..2" minOccurs="0"/>
      <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
      <xs:element name="ActiveBorderTransportMeans" type="BefoerderungsmittelGrenzePackstueckXITyp" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PositionInformationZumAusgangTyp">
    <xs:sequence>
      <xs:element name="GoodsItemNumber" type="seq3" minOccurs="0"/>
      <xs:element name="NetMass" type="n..22.6" minOccurs="0"/>
      <xs:element name="GrossMass" type="n..19.3" minOccurs="0"/>
      <xs:element name="RegistrationNumberExternal" type="an..70" minOccurs="0"/>
      <xs:element name="ReferenceNumberUCR" type="an..35" minOccurs="0"/>
      <xs:element name="ActiveBorderTransportMeans" type="BefoerderungsmittelGrenzePositionXITyp" minOccurs="0"/>
      <xs:element name="Packaging" type="PackstueckXITyp" minOccurs="0" maxOccurs="99"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="seq3">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100"/>
      <xs:pattern value="( *)(0*)[1-9]\d{0,2}([.,](0*))?( *)"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SpediteurXITyp">
    <xs:sequence>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="SubsidiaryNumber" type="n..4" 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="TransportausruestungXITyp">
    <xs:sequence>
      <xs:element name="NumberOfSeals" type="n..2" 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="n..3" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
