<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="EingangsanzeigeNCTSDE" type="EingangsanzeigeEATyp">
    <xs:annotation>
      <xs:documentation>Version 003 - Release 003</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="AddressEAType">
    <xs:sequence>
      <xs:element name="AddressCode" type="an..50" minOccurs="0"/>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0"/>
      <xs:element name="SubsidiaryNumber" type="n..4" minOccurs="0"/>
      <xs:element name="ContactPerson" type="ContactPersonVAType" 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..256">
    <xs:restriction base="xs:string">
      <xs:maxLength value="256"/>
    </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..50">
    <xs:restriction base="xs:string">
      <xs:maxLength value="50"/>
    </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: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="AuthorisationEAType">
    <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="ContactPersonVAType">
    <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="DatenaustauschNCTSTyp">
    <xs:sequence>
      <xs:element name="Transaktion" type="TransaktionNCTSTyp"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EingangsanzeigeEATyp">
    <xs:complexContent>
      <xs:extension base="DatenaustauschNCTSTyp">
        <xs:sequence>
          <xs:element name="EinzelEingangsanzeige" type="EinzelEingangsanzeigeTyp" minOccurs="0"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="EinzelEingangsanzeigeTyp">
    <xs:sequence>
      <xs:element name="ObjektIdentifizierung" type="ObjektIdentifizierungEATyp" minOccurs="0"/>
      <xs:element name="TransitOperation" type="TransitOperationEAType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="IncidentEAType">
    <xs:sequence>
      <xs:element name="Code" type="an..1" minOccurs="0"/>
      <xs:element name="Text" type="an..512" minOccurs="0"/>
      <xs:element name="DateOfEndorsement" type="xs:date" minOccurs="0"/>
      <xs:element name="AuthorityOfEndorsement" type="an..35" minOccurs="0"/>
      <xs:element name="PlaceOfEndorsement" type="an..35" minOccurs="0"/>
      <xs:element name="CountryOfEndorsement" type="an..2" minOccurs="0"/>
      <xs:element name="QualifierOfIdentificationOfLocation" type="an..1" minOccurs="0"/>
      <xs:element name="UNLocode" type="an..17" minOccurs="0"/>
      <xs:element name="CountryOfLocation" type="an..2" minOccurs="0"/>
      <xs:element name="Latitude" type="an..17" minOccurs="0"/>
      <xs:element name="Longitude" type="an..17" minOccurs="0"/>
      <xs:element name="StreetAndNumberOfLocation" type="an..70" minOccurs="0"/>
      <xs:element name="CityOfLocation" type="an..35" minOccurs="0"/>
      <xs:element name="PostcodeOfLocation" type="an..17" minOccurs="0"/>
      <xs:element name="TransportEquipment" type="TransportEquipmentEAType" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="Transhipment" type="TranshipmentEAType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LocationOfGoodsEAType">
    <xs:sequence>
      <xs:element name="AdditionalIdentifier" type="an..4" minOccurs="0"/>
      <xs:element name="ContactPerson" type="ContactPersonVAType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <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..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="n3">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{3}"/>
      <xs:totalDigits value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ObjektIdentifizierungEATyp">
    <xs:sequence>
      <xs:element name="ObjektName" type="an..35"/>
      <xs:element name="ObjektAliasname" type="an..35" minOccurs="0"/>
      <xs:element name="BezugsnummerVorblendung" type="an..35" minOccurs="0"/>
      <xs:element name="KopieVon" type="an..35" minOccurs="0"/>
      <xs:element name="ObjektAktion" type="an..10" maxOccurs="10"/>
      <xs:element name="Bearbeiter" type="an..70" minOccurs="0"/>
      <xs:element name="AnfBemerkungStatusanzeige" type="an..17" minOccurs="0"/>
      <xs:element name="NameAbsendendesSystem" type="an..6" minOccurs="0"/>
      <xs:element name="ShipmentReferenz" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransaktionNCTSTyp">
    <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="TranshipmentEAType">
    <xs:sequence>
      <xs:element name="ContainerIndicator" type="an..1" minOccurs="0"/>
      <xs:element name="TypeOfIdentificationOfTransportMeans" type="an..2" minOccurs="0"/>
      <xs:element name="IdentificationNumberOfTransportMeans" type="an..35" minOccurs="0"/>
      <xs:element name="NationalityOfTransportMeans" type="an..2" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransitOperationEAType">
    <xs:sequence>
      <xs:element name="MRN" type="an..18" minOccurs="0"/>
      <xs:element name="ArrivalNotificationDateAndTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="LocationOfGoods" type="LocationOfGoodsEAType" minOccurs="0"/>
      <xs:element name="IncidentFlag" type="an..1" minOccurs="0"/>
      <xs:element name="CustomsOfficeOfDestinationActual" type="an..8" minOccurs="0"/>
      <xs:element name="TraderAtDestination" type="AddressEAType" minOccurs="0"/>
      <xs:element name="Authorisation" type="AuthorisationEAType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="Incident" type="IncidentEAType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="ApplicationInternalData" type="ApplicationInternalDataType" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportEquipmentEAType">
    <xs:sequence>
      <xs:element name="NumberOfSeals" type="n..2" 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="n..4" minOccurs="0" maxOccurs="9999"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
