<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ICS2Message" type="ICS2MessageType"/>
  <xs:simpleType name="a..3">
    <xs:restriction base="xs:string">
      <xs:maxLength value="3"/>
      <xs:pattern value="[A-Za-z]{0,3}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="a1">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="1"/>
      <xs:pattern value="[a-zA-Z]"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="a2">
    <xs:restriction base="xs:string">
      <xs:length value="2"/>
      <xs:pattern value="[a-zA-Z]{2}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="a3">
    <xs:restriction base="xs:string">
      <xs:length value="3"/>
      <xs:pattern value="[a-zA-Z]{3}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AdditionalInformationCodeENSType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="10600">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consignee Unknown</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10900">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS lodged together with customs declaration for low value consignments</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="17"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AdditionalInformationCodeResponseType">
    <xs:annotation>
      <xs:documentation xml:lang="EN">See CL752 for appropriate values</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="17"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AdditionalInformationENSType">
    <xs:sequence>
      <xs:element name="Code" type="AdditionalInformationCodeENSType" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Additional statement code: CL701

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Text" type="an..512" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Additional statement text

          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="AdditionalSupplyChainActorRoleType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CE">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CO">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CR">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Carrier</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CS">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consolidator</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FW">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Freight Forwarder</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MF">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Manufacturer</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WH">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Warehouse Keeper</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AddressType">
    <xs:annotation>
      <xs:documentation xml:lang="EN">In the 'ADDRESS' class either 'ADDRESS/Street' and 'ADDRESS/Number' or 'ADDRESS/P.O.Box' has to be used.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="City" type="an..35">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
City name

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Country" type="CountryCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Country, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Subdivision" type="an..35" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Country sub-entity name

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Street" type="an..70" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Street and number/P.O. Box

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Number" type="an..35" minOccurs="0"/>
      <xs:element name="StreetAdditionalLine" type="an..70" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Postcode identification

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Postcode" type="an..17" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory, IF 'ADRESS/Country' in CL733 has a country code with postal code indicator other than 'C'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PoBox" type="an..70" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="an..10">
    <xs:restriction base="xs:string">
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an..1024">
    <xs:restriction base="xs:string">
      <xs:maxLength value="1024"/>
    </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..256">
    <xs:restriction base="xs:string">
      <xs:maxLength value="256"/>
    </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..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="an2">
    <xs:restriction base="xs:string">
      <xs:minLength value="2"/>
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an3">
    <xs:restriction base="xs:string">
      <xs:minLength value="3"/>
      <xs:maxLength value="3"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an4">
    <xs:restriction base="xs:string">
      <xs:minLength value="4"/>
      <xs:maxLength value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an6">
    <xs:restriction base="xs:string">
      <xs:minLength value="6"/>
      <xs:maxLength value="6"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an8">
    <xs:restriction base="xs:string">
      <xs:minLength value="8"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="an9">
    <xs:restriction base="xs:string">
      <xs:minLength value="9"/>
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ArrivalNotificationType">
    <xs:sequence>
      <xs:element name="LRN" type="an..22" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This attribute has to be unique as per Declarant (DECLARANT/Identification number).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Date" type="DateType" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Document issuing date


          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NotifyParty" type="PartyType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="ActiveBorderTransportMeans" minOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..35" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Identification of means of transport crossing the border, coded

                </xs:documentation>
                <xs:documentation xml:lang="EN">
IF 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is set to '1' or '8', 
THEN this data attribute is M, 
ELSE it is not used.

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfIdentification" type="TypeOfIdentificationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
IF 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is set to '1' or '8', 
THEN this data attribute is M, 
ELSE it is not used.

                </xs:documentation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is '1' the value of this attribute must be '10'.</xs:documentation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is '8' the value of this attribute must be '80'.</xs:documentation>
                <xs:documentation xml:lang="EN">
Type of identification of means of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ModeOfTransport" type="ModeOfTransportType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Mode of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ActualDateAndTimeOfArrival" type="xs:dateTime" minOccurs="1"/>
            <xs:element name="EstimatedDateAndTimeOfArrival" type="xs:dateTime" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">At least one of the following shall be provided: 'ACTIVE BORDER TRANSPORT MEANS/Estimated date and time of arrival' or 'MRN'.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="EstimatedDateAndTimeOfDeparture" type="xs:dateTime" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Not necessary for arrival notification. ETD is for additional information.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ConveyanceReferenceNumber" type="an..17" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
IF 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is set to '4', THEN this data attribute is M, 
ELSE it is not used

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocument" minOccurs="0" maxOccurs="9999">
        <xs:annotation>
          <xs:documentation xml:lang="EN">If the ‘TRANSPORT DOCUMENT’ is used, then the ‘MRN’ cannot be used.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MRN" type="an..18" minOccurs="0" maxOccurs="9999">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Previous document number

          </xs:documentation>
          <xs:documentation xml:lang="EN">If the ‘RELATED TRANSPORT DOCUMENT’ is used, then the ‘RELATED MRN’ cannot be used.</xs:documentation>
          <xs:documentation xml:lang="EN">At least one of the following shall be provided: 'ACTIVE BORDER TRANSPORT MEANS/Estimated date and time of arrival' or 'MRN'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonNotifyingTheArrival" type="PartyType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">If the Arrival notification is provided via a National Arrival System (not via the STI), then the ‘PERSON NOTIFYING THE ARRIVAL’ is O, else it is M.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActualCustomsOfficeOfFirstEntry" type="an8" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="DE">
	CL141	 Customs office reference number
	Customs office list (COL as published in CS/RD2)

          </xs:documentation>
          <xs:documentation xml:lang="EN">
Office of entry, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CommunicationType">
    <xs:sequence>
      <xs:element name="Identifier" type="an..512">
        <xs:annotation>
          <xs:documentation xml:lang="EN">When 'COMMUNICATION/Type' is 'TE' the 'COMMUNICATION/Identifier' has to have an international phone number format as defined in the ITU-T recommendation E.123 (02/2001). The format must be compliant with the pattern "^\\+(?:[0-9] ?){6,14}[0-9]$”.</xs:documentation>
          <xs:documentation xml:lang="EN">
Communication number

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" type="CommunicationTypeType" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Communication number type

          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="CommunicationTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="EM">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Electronic mail</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TE">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Telephone</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ConsignmentHouseType">
    <xs:sequence>
      <xs:element name="ContainerIndicator" type="ContainerIndicatorType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Container transport code

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
      <xs:element name="TotalAmountInvoiced" type="n..16.2" minOccurs="0"/>
      <xs:element name="TotalAmountInvoicedCurrency" type="a3" minOccurs="0"/>
      <xs:element name="AdditionsAndDeductions" type="n..16.2" minOccurs="0"/>
      <xs:element name="AdditionsAndDeductionsCurrency" type="a3" minOccurs="0"/>
      <xs:element name="AdditionalFiscalReferences" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="VATIdentificationNumber" type="an..17" minOccurs="0"/>
            <xs:element name="Role" type="an..3" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">CL756</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TotalGrossMass" type="n..16.6" minOccurs="0"/>
      <xs:element name="PlaceOfAcceptance" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F10, F11, F13, F14, F15, F20, F22, F26, F27, F28, F29, F31, F33, F34, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupportingDocuments" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This class should be provided, if available, either at CONSIGNMENT level or CONSIGNMENT (HOUSE LEVEL)/GOODS ITEM level. Where the same information is applicable to all Goods items in the same Consignment, it should be provided at CONSIGNMENT level only.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1"/>
            <xs:element name="Type" type="an..4" minOccurs="1">
              <xs:annotation>
                <xs:documentation>CL013 Document type List of document types as published in CS/RD2</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdditionalInformation" type="AdditionalInformationENSType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalSupplyChainActor" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This class should be provided, if available, either at CONSIGNMENT level or CONSIGNMENT (HOUSE LEVEL)/GOODS ITEM level. Where the same information is applicable to all Goods items in the same Consignment, it should be provided at CONSIGNMENT level only.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..17" minOccurs="1"/>
            <xs:element name="Role" type="AdditionalSupplyChainActorRoleType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Carrier" type="PartyType" minOccurs="0"/>
      <xs:element name="Consignee" type="PartyType" minOccurs="0"/>
      <xs:element name="GoodsItem" type="GoodsItemType" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="Consignor" type="PartyType" minOccurs="0"/>
      <xs:element name="PostalCharges" type="n..16.2" minOccurs="0"/>
      <xs:element name="PostalChargesCurrency" type="a3" minOccurs="0"/>
      <xs:element name="TransportChargesMethodOfPayment" type="TransportChargesMethodOfPaymentType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Transport charges method of payment, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F10, F11, F13, F14, F15, F20, F22, F26, F27, F28, F29, F31, F33, F34, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountriesOfRoutingOfConsignment" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SequenceNumber" type="n..2" minOccurs="1"/>
            <xs:element name="Country" type="CountryCodeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NotifyParty" type="PartyType" minOccurs="0"/>
      <xs:element name="Buyer" type="PartyType" minOccurs="0"/>
      <xs:element name="Seller" type="PartyType" minOccurs="0"/>
      <xs:element name="SupplementaryDeclarant" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..17" minOccurs="1"/>
            <xs:element name="SupplementaryFilingType" type="SupplementaryFilingTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="PassiveBorderTransportMeans" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..35" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Identification of passive transport means, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfIdentification" type="n2" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Type of identification of passive transport means, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfMeansOfTransport" type="n..4" minOccurs="1"/>
            <xs:element name="Nationality" type="CountryCodeType" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Nationality of passive means of transport, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocumentHouse" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1"/>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocumentMaster" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1"/>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportEquipment" type="TransportEquipmentType" minOccurs="0" maxOccurs="9999">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory, IF 'CONSIGNMENT (HOUSE LEVEL)/Container indicator' is set to '1',</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReferenceNumberUCR" type="an..35" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Trader reference

          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConsignmentMasterType">
    <xs:sequence>
      <xs:element name="ContainerIndicator" type="ContainerIndicatorType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Container transport code. Mandatory for F11, F12, F20, F21, F27, F31, F40, F41, F45, F50, F51

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F40, F41, F42, F45</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotalGrossMass" type="n..16.6" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Total gross weight. Mandatory for F11, F12, F20, F21, F27, F31

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfAcceptance" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F11, F12, F20, F21, F27, F31, F34, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupportingDocuments" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Additional document reference number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="an..4" minOccurs="1">
              <xs:annotation>
                <xs:documentation>CL013 Document type List of document types as published in CS/RD2</xs:documentation>
                <xs:documentation xml:lang="EN">
Additional document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdditionalInformation" type="AdditionalInformationENSType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalSupplyChainActor" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..17" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
AEO mutual recognition party, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Role" type="AdditionalSupplyChainActorRoleType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Role code

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Carrier" type="PartyType" minOccurs="0"/>
      <xs:element name="Consignee" type="PartyType" minOccurs="0"/>
      <xs:element name="Consignor" type="PartyType" minOccurs="0"/>
      <xs:element name="GoodsItem" type="GoodsItemType" minOccurs="0" maxOccurs="9999999"/>
      <xs:element name="TransportChargesMethodOfPayment" type="TransportChargesMethodOfPaymentType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Transport charges method of payment, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F11, F12, F20, F21, F27, F31, F34, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F10, F11, F12, F13, F27, F28, F29, F30, F31, F34, F40, F41, F42, F45, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PassiveBorderTransportMeans" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..35" minOccurs="1"/>
            <xs:element name="TypeOfIdentification" type="n2" minOccurs="1"/>
            <xs:element name="TypeOfMeansOfTransport" type="n..4" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">CL751	 Type of Means of Transport</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Nationality" type="CountryCodeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NotifyParty" type="PartyType" minOccurs="0"/>
      <xs:element name="SupplementaryDeclarant" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..17" minOccurs="1"/>
            <xs:element name="SupplementaryFilingType" type="SupplementaryFilingTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocument" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportEquipment" type="TransportEquipmentType" minOccurs="0" maxOccurs="9999">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory, IF 'CONSIGNMENT (Master LEVEL)/Container indicator' is set to '1',</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReferenceNumberUCR" type="an..35" minOccurs="0"/>
      <xs:element name="PlaceOfUnloading" type="LocationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory for F10, F11, F12, F13, F27, F28, F29, F30, F31, F34, F40, F41, F42, F45, F50, F51</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="ContainerIndicatorType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Goods not transported in containers</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Goods transported in containers</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CountryCodeType">
    <xs:annotation>
      <xs:documentation xml:lang="EN">CL718: ISO 3166 list of country codes as published in CS/RD2</xs:documentation>
    </xs:annotation>
    <xs:restriction base="an..2">
      <xs:pattern value="[A-Z]{2}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CustomsOfficeTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CONTROL"/>
      <xs:enumeration value="FIRST_ENTRY"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="15"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="DatasetIndicatorType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="COMPLETE"/>
      <xs:enumeration value="PARTIAL"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="DateType">
    <xs:sequence>
      <xs:element name="Date" type="xs:dateTime" minOccurs="1"/>
      <xs:element name="DateType" type="DateTypeType" minOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="DateTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Completion"/>
      <xs:enumeration value="DocumentIssue"/>
      <xs:enumeration value="Notification"/>
      <xs:enumeration value="Registration"/>
      <xs:enumeration value="ScheduledControl"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ENSEntityStateType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="01">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Registered</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="02">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rejected</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="03">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Accepted</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="04">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Pending linking</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="05">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Linked</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="06">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Pending association</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="07">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Associated</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="09">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Invalidated</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Pending completeness</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Complete</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Considered complete for full risk analysis</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="19">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Arrived</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Presented</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="26">
        <xs:annotation>
          <xs:documentation xml:lang="EN">STI internal test code</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="27">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Assessment completed</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Expired</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="31">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Open</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ENSEntityTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="AMN">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Amendment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARN">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Arrival notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CGS">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Goods shipment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHL">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consignment (House level)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CML">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Master consignment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CPL">
        <xs:annotation>
          <xs:documentation xml:lang="EN">PLACI house consignment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENF">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS filing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENS">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INR">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Invalidation request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCE">
        <xs:annotation>
          <xs:documentation xml:lang="EN">HRCM screening result</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ENSMessageType">
    <xs:sequence>
      <xs:element name="LRN" type="an..22" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Local Reference Number</xs:documentation>
          <xs:documentation xml:lang="EN">Mandatory, if Message function is ORIGINAL</xs:documentation>
          <xs:documentation xml:lang="EN">This attribute has to be unique as per Declarant (DECLARANT/Identification number).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TemplateName" type="an..35" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Name of a ZODIAK GE template to load data into the ENS from ZODIAK GE master data.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentIssueDate" type="xs:dateTime" minOccurs="1"/>
      <xs:element name="ReferralRequestReference" type="an..17" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">In case of RFI or RFS the requested information can be sent via amendment of the ICS2 application. In this case the referral request reference has to be sent, so that the amendment can be assigned to the correspondig RFI/RFS.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MRN" type="an..18" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Movement Reference Number</xs:documentation>
          <xs:documentation xml:lang="EN">Mandatory, if MessageFunction is AMENDMENT</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreviousDocumentIdentification" type="an..70" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">mandatory for F25. It contains the MRN of the previous F23</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MessageFunction" type="MessageFunctionType" minOccurs="1"/>
      <xs:element name="ProcessPhase" type="ProcessPhaseType" minOccurs="0"/>
      <xs:element name="DatasetIndicator" type="DatasetIndicatorType" minOccurs="0"/>
      <xs:element name="SpecificCircumstanceIndicator" type="SpecificCircumstanceIndicatorContentType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This element shall be declared</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialHandlingCode" type="SpecialHandlingCodeType" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Codes can be used for special handling of ENS messages. Codes must be adjusted with DAKOSY otherwise codes will be ignored.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReentryIndicator" type="ReentryIndicatorType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Mandatory, if DatasetIndicator is COMPLETE</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddressedMemberState" type="a2" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CL717 	Country code (ICS2 MS)</xs:documentation>
          <xs:documentation xml:lang="EN">Mandatory, if DatasetIndicator is PARTIAL</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SplitConsignment" type="SplitConsignmentType" minOccurs="0"/>
      <xs:element name="Representative" type="PartyType" minOccurs="0"/>
      <xs:element name="ActiveBorderTransportMeans" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">F10, F11, F12, F13, F34, F40, F41, F42, F45, F50, F51: Either the ‘Estimated date and time of departure’ or ‘Actual date and time of departure’ is to be provided. But not both. </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..35" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Type of identification' is '10' this attribute must contain IMO ship identification number and its value must be made of the three letters "IMO" followed by a six-digit sequential unique number and a check digit. The check digit is calculated by multiplying each of the first six digits by a factor of 2 to 7 corresponding to their position from right to left. The rightmost digit of this sum is the check digit</xs:documentation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Type of identification' is '80' this attribute must contain unique European Vessel Identification Number (ENI) and its value must have an eight digit format.</xs:documentation>
                <xs:documentation xml:lang="EN">
Identification of means of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfIdentification" type="TypeOfIdentificationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is '1' the value of this attribute must be '10'.</xs:documentation>
                <xs:documentation xml:lang="EN">When 'ACTIVE BORDER TRANSPORT MEANS/Mode of transport' is '8' the value of this attribute must be '80'.</xs:documentation>
                <xs:documentation xml:lang="EN">
Type of identification of means of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfMeansOfTransport" type="xs:string" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">CL751	 Type of Means of Transport for sea freight.</xs:documentation>
                <xs:documentation xml:lang="EN">
Type of means of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Nationality" type="CountryCodeType" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Nationality of means of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ModeOfTransport" type="ModeOfTransportType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Mode of transport crossing the border, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ActualDateAndTimeOfDeparture" type="xs:dateTime" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">The 'Estimated date and time of arrival' cannot be earlier than the 'Actual date and time of departure' or 'Estimated date and time of departure'.</xs:documentation>
                <xs:documentation xml:lang="EN">Actual date and time of departure from where the goods were loaded onto the active means of transport which will carry them into the Union.</xs:documentation>
                <xs:documentation xml:lang="EN">Mandatory for F21, F27, F29, F30, F31</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="EstimatedDateAndTimeOfDeparture" type="xs:dateTime" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Departure The 'Estimated date and time of arrival' cannot be earlier than the 'Actual date and time of departure' or 'Estimated date and time of departure'.</xs:documentation>
                <xs:documentation xml:lang="EN">Estimated date and time of departure from the place where the goods were loaded onto the active means of transport which will carry them into the Union.</xs:documentation>
                <xs:documentation xml:lang="EN">Mandatory for F20, F28</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="EstimatedDateAndTimeOfArrival" type="xs:dateTime" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Arrival The 'Estimated date and time of arrival' cannot be earlier than the 'Actual date and time of departure' or 'Estimated date and time of departure'.</xs:documentation>
                <xs:documentation xml:lang="EN">Estimated date and time where the active means of transport arrives in the Union at (land) the first border post, (air) at the first airport or (sea) at the first port.</xs:documentation>
                <xs:documentation xml:lang="EN">Mandatory for F10, F11, F12, F13, F20, F21, F27, F28, F29, F30, F31, F40, F41, F42, F45, F50, F51</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ConveyanceReferenceNumber" type="an..17" minOccurs="0"/>
            <xs:element name="CountriesOfRoutingOfMeansOfTransport" minOccurs="0" maxOccurs="99">
              <xs:annotation>
                <xs:documentation xml:lang="EN">'ACTIVE BORDER TRANSPORT MEANS/Countries of routing of means of transport' first country in the sequence must be the same as 'CONSIGNMENT (MASTER LEVEL)/PLACE OF LOADING/UNLOCODE' or 'CONSIGNMENT (MASTER LEVEL)/PLACE OF LOADING/ADDRESS/Country'.</xs:documentation>
                <xs:documentation xml:lang="EN">'ACTIVE BORDER TRANSPORT MEANS/Countries of routing of means of transport' last country in the sequence must be the same as 'CONSIGNMENT (MASTER LEVEL)/PLACE OF UNLOADING/UNLOCODE' or 'CONSIGNMENT (MASTER LEVEL)/PLACE OF UNLOADING/ADDRESS/Country'.</xs:documentation>
                <xs:documentation xml:lang="EN">In the sequence of 'ACTIVE BORDER TRANSPORT MEANS/Countries of routing of means of transport' the first country that is an EU Member State must be the country of the 'CUSTOMS OFFICE OF FIRST ENTRY'.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="SequenceNumber" type="n..2" minOccurs="1"/>
                  <xs:element name="Country" type="CountryCodeType" minOccurs="1"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="AirportsOfRouting" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="SequenceNumber" type="n..2" minOccurs="1"/>
                  <xs:element name="Code" type="an3" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">IATA airport code, e.g. FRA</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ConsignmentMaster" type="ConsignmentMasterType" minOccurs="0"/>
      <xs:element name="ConsignmentHouse" type="ConsignmentHouseType" minOccurs="0" maxOccurs="99999"/>
      <xs:element name="Declarant" type="PartyType" minOccurs="1"/>
      <xs:element name="CustomsOfficeOfFirstEntry" type="an8" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="DE">
	CL141	 Customs office reference number
	Customs office list (COL as published in CS/RD2)

          </xs:documentation>
          <xs:documentation xml:lang="EN">
Office of entry, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HRCMScreeningResults" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Result" type="an..3" minOccurs="1"/>
            <xs:element name="ScreeningMethod" type="an..3" minOccurs="2" maxOccurs="9"/>
            <xs:element name="AdditionalInformation" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Code" type="an..17" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="DE">CL752	 Additional information code (Subset)</xs:documentation>
                      <xs:documentation xml:lang="EN">
Additional statement code

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Text" type="an..512" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement text

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="an..3" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement type

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="AuthorizedPerson" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Name" type="an..70" minOccurs="1"/>
                  <xs:element name="IdentificationNumber" type="an..17" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Authorised person, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="TypeOfPerson" type="TypeOfPersonType" minOccurs="1"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="BinaryFile" minOccurs="0" maxOccurs="9">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Identification" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Identifier

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Filename" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Name

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="MIME" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File MIME, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Description" type="an..256" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Description

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="FileContent" type="xs:base64Binary" minOccurs="0"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="FacilityAddress" type="AddressType" minOccurs="0"/>
            <xs:element name="TransportDocument" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="an4" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document type, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ENSStatusRequestType">
    <xs:sequence>
      <xs:element name="IndicatorString" type="an..3" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">IndicatorString or Indicator must be set  (DataRequest)</xs:documentation>
          <xs:documentation xml:lang="EN">CL027 is used</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Indicator" type="xs:boolean" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Indicator or IndicatorString must be set  (DataRequest)</xs:documentation>
          <xs:documentation xml:lang="EN">CL027 is used</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StatusRequestIndicatorString" type="an..3" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">StatusRequestIndicatorString or StatusRequestIndicator must be set</xs:documentation>
          <xs:documentation xml:lang="EN">CL027 is used</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StatusRequestIndicator" type="xs:boolean" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CL027 is used</xs:documentation>
          <xs:documentation xml:lang="EN">StatusRequestIndicatorString or StatusRequestIndicator must be set</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FunctionalReference" type="an..35" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Functional reference number

          </xs:documentation>
          <xs:documentation xml:lang="EN">This attribute has to be unique as per Declarant (DECLARANT/Identification number).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MRN" type="an..18" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Either 'MRN' or 'TRANSPORT DOCUMENT' must be used.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Requester" type="PartyType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="TransportDocument" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Either 'MRN' or 'TRANSPORT DOCUMENT' must be used.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocumentHouse" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Either 'MRN' or 'TRANSPORT DOCUMENT' must be used.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Transport document number</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Transport document type, coded</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsItemType">
    <xs:sequence>
      <xs:element name="ItemAmountInvoiced" type="n..16.2" minOccurs="0"/>
      <xs:element name="ItemAmountInvoicedCurrency" type="a3" minOccurs="0"/>
      <xs:element name="GoodsItemNumber" type="n..5" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Each ‘Goods Item Number’ must be unique throughout CONSIGNMENT (HOUSE LEVEL). The items shall be numbered in a sequential fashion, starting from '1' for the first item and incrementing the numbering by '1' for each following item.</xs:documentation>
          <xs:documentation xml:lang="EN">
Sequence number

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PostalValue" type="n..16.2" minOccurs="0"/>
      <xs:element name="PostalValueCurrency" type="a3" minOccurs="0"/>
      <xs:element name="TypeOfGoods" type="an..3" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CL749: Conditions IF 'CONSIGNMENT (HOUSE LEVEL)/ADDITIONAL INFORMATION/Code' contains value ‘10900’ and 'CONSIGNMENT (HOUSE LEVEL)/ADDITIONAL FISCAL REFERENCES' class is not provided, THEN this class/attribute is M, ELSE it is O.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupportingDocuments" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This class should be provided, if available, either at CONSIGNMENT level or CONSIGNMENT (HOUSE LEVEL)/GOODS ITEM level. Where the same information is applicable to all Goods items in the same Consignment, it should be provided at CONSIGNMENT level only.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Additional document reference number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="an..4" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="DE">CL013 Document type List of document types as published in CS/RD2</xs:documentation>
                <xs:documentation xml:lang="EN">
Additional document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdditionalInformation" type="AdditionalInformationENSType" minOccurs="0" maxOccurs="99"/>
      <xs:element name="AdditionalSupplyChainActor" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">This class should be provided, if available, either at CONSIGNMENT level or CONSIGNMENT (HOUSE LEVEL)/GOODS ITEM level. Where the same information is applicable to all Goods items in the same Consignment, it should be provided at CONSIGNMENT level only.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..17" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
AEO mutual recognition party, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Role" type="AdditionalSupplyChainActorRoleType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Role code

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DescriptionOfGoods" type="an..512" minOccurs="0"/>
      <xs:element name="CUSCode" type="an9" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CL719 CUS code As published in ECICS</xs:documentation>
          <xs:documentation xml:lang="EN">The format of this attribute is 9999999-9.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HarmonizedSystemSubheadingCode" type="an..6" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="DE">CL706 Commodity code As published in TARIC</xs:documentation>
          <xs:documentation xml:lang="EN">Mandatory, IF 'CONSIGNMENT (HOUSE LEVEL)/CONSIGNOR/Type of person' and 'CONSIGNMENT (HOUSE LEVEL)/CONSIGNEE/Type of person' is '1 (Natural person)',</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CombinedNomenclatureCode" type="an2" minOccurs="0"/>
      <xs:element name="DangerousGoodsUNNumber" type="an..4" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="DE">CL101 UNDG Code UN dangerous goods list as published in CS/RD2</xs:documentation>
          <xs:documentation xml:lang="EN">
United Nations Dangerous Goods Identifier (UNDG)

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountryOfOrigin" type="a2" minOccurs="0"/>
      <xs:element name="GrossMass" type="n..16.6" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Gross weight item level

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Packaging" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ShippingMarks" type="an..512" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Mandatory, IF 'CONSGINMENT (HOUSE LEVEL)/GOODS ITEM/PACKAGING/Type of packages' is not 'VQ', 'VG', 'VL', 'VY', 'VR', 'VS', 'VO', 'NE', 'NF', 'NG', </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="NumberOfPackages" type="n..8" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Mandatory, IF 'CONSGINMENT (HOUSE LEVEL)/GOODS ITEM/PACKAGING/Type of packages' is not 'VQ', 'VG', 'VL', 'VY', 'VR', 'VS', 'VO', 'NE', 'NF', 'NG',</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfPackages" type="an2" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
	CL017	 Package type
	UN/ECE recommendation 21 code list as published in CS/RD2
                </xs:documentation>
                <xs:documentation xml:lang="EN">
Type of packages identification, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="PassiveBorderTransportMeans" minOccurs="0" maxOccurs="99">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="IdentificationNumber" type="an..35" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Identification of passive transport means, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfIdentification" type="TypeOfIdentificationType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Type of identification of passive transport means, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TypeOfMeansOfTransport" type="n..4" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">CL751	 Type of Means of Transport</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Nationality" type="a2" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Nationality of passive means of transport, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportEquipment" type="TransportEquipmentType" minOccurs="0" maxOccurs="9999"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ICS2MessageType">
    <xs:sequence>
      <xs:element name="Transaction" type="TransactionICSType" minOccurs="0"/>
      <xs:element name="Messages" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:choice>
              <xs:element name="ENSMessage" type="ENSMessageType" minOccurs="0"/>
              <xs:element name="Response" type="ResponseType" minOccurs="0"/>
              <xs:element name="ArrivalNotification" type="ArrivalNotificationType" minOccurs="0"/>
              <xs:element name="ENSStatusRequest" type="ENSStatusRequestType" minOccurs="0"/>
              <xs:element name="ReferralResponseToSTI" type="ReferralResponseToSTIType" minOccurs="0"/>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LocationType">
    <xs:sequence>
      <xs:element name="Location" type="an..35" minOccurs="0"/>
      <xs:element name="UNLOCODE" type="an..17" minOccurs="0"/>
      <xs:element name="Country" type="a2" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
	CL718 	Country code (ISO 3166)
	ISO 3166 list of country codes as published in CS/RD2

          </xs:documentation>
          <xs:documentation xml:lang="EN">
Country, coded

          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="MemberStateTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ADDRESSED"/>
      <xs:enumeration value="RESPONSIBLE"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="15"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MessageFunctionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CANCELLATION">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Invalidation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ORIGINAL">
        <xs:annotation>
          <xs:documentation xml:lang="EN">New  application</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPDATE">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Amendment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ModeOfTransportType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Maritime Transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail Transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road Transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air Transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Inland Waterway Transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..16.2">
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="16"/>
      <xs:fractionDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..16.6">
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="16"/>
      <xs:fractionDigits value="6"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..2">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..4">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..5">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="5"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n..8">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="n1">
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:pattern value="\d{1}"/>
      <xs:totalDigits value="1"/>
    </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:complexType name="PartyType">
    <xs:sequence>
      <xs:element name="Name" type="an..70" minOccurs="0"/>
      <xs:element name="IdentificationNumber" type="an..17" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">EORI number shall be declared.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" type="n1" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="DE">CL094</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypeOfPerson" type="TypeOfPersonType" minOccurs="0"/>
      <xs:element name="Address" type="AddressType" minOccurs="0"/>
      <xs:element name="Communication" type="CommunicationType" minOccurs="0" maxOccurs="9"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="ProcessPhaseType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="PRE_ARRIVAL"/>
      <xs:enumeration value="PRE_LOADING"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ReentryIndicatorType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>No</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Yes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ReferralRequestTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="AMD">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Request to amend ENS filing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RFI">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Request for information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RFS">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Request for HRCM screening</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ReferralResponseToSTIType">
    <xs:sequence>
      <xs:element name="SpecificCircumstanceIndicator" type="SpecificCircumstanceIndicatorContentType2" minOccurs="1"/>
      <xs:element name="Date" type="DateType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="MRN" type="an..18" minOccurs="1" maxOccurs="1"/>
      <xs:element name="ResponsibleMemberState" type="a2" minOccurs="1"/>
      <xs:element name="Representative" type="PartyType" minOccurs="0" maxOccurs="9"/>
      <xs:element name="Declarant" type="PartyType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="TransportDocument" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdditionalInformationResponse" minOccurs="0" maxOccurs="999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferralRequestReference" type="an..17" minOccurs="1"/>
            <xs:element name="AdditionalInformation" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Code" type="AdditionalInformationCodeResponseType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement code

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Text" type="an..512" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement text

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="an..3" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement type

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="BinaryAttachment" minOccurs="0" maxOccurs="9">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Identification" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Identifier

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Filename" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Name

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="MIME" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File MIME, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Description" type="an..256" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Description

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="FileContent" type="xs:base64Binary" minOccurs="0"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="TransportDocumentHouse" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document type, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="HRCMScreeningResults" minOccurs="0" maxOccurs="999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferralRequestReference" type="an..17" minOccurs="0"/>
            <xs:element name="Result" type="an..3" minOccurs="1"/>
            <xs:element name="ScreeningMethod" type="an..3" minOccurs="2" maxOccurs="9"/>
            <xs:element name="AdditionalInformation" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Code" type="an..17" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="DE">CL752	 Additional information code (Subset)</xs:documentation>
                      <xs:documentation xml:lang="EN">
Additional statement code

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Text" type="an..512" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement text

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="an..3" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Additional statement type

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="AuthorizedPerson" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Name" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Authorised person

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="IdentificationNumber" type="an..17" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Authorised person, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="TypeOfPerson" type="TypeOfPersonType" minOccurs="1"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="BinaryFile" minOccurs="0" maxOccurs="9">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Identification" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Identifier

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Filename" type="an..256" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File Name

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="MIME" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File MIME, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Description" type="an..256" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Binary File MIME, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="FileContent" type="xs:base64Binary" minOccurs="0"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="FacilityAddress" type="AddressType" minOccurs="0"/>
            <xs:element name="TransportDocumentHouse" minOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="an4" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document type, coded


                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="ResponseOriginType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="DAK">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Message originated from DAKOSY</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Message originated from other sources</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STI">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Message originated from STI</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="17"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ResponseType">
    <xs:sequence>
      <xs:element name="ResponseType" type="ResponseTypeType" minOccurs="0"/>
      <xs:element name="ResponseOrigin" type="ResponseOriginType" minOccurs="0"/>
      <xs:element name="FunctionalReference" type="an..35" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Functional reference number

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Date" type="DateType" minOccurs="0" maxOccurs="2"/>
      <xs:element name="LRN" type="an..22" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Functional reference number

          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MRN" type="an..18" minOccurs="0" maxOccurs="1"/>
      <xs:element name="MemberState" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Country" type="a2" minOccurs="1"/>
            <xs:element name="Type" type="MemberStateTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomsOffice" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an8" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Customs office list (COL as published in CS/RD2)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="CustomsOfficeTypeType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Representative" type="PartyType" minOccurs="0"/>
      <xs:element name="Carrier" type="PartyType" minOccurs="0"/>
      <xs:element name="Declarant" type="PartyType" minOccurs="0"/>
      <xs:element name="SupplementaryDeclarant" type="PartyType" minOccurs="0" maxOccurs="99999"/>
      <xs:element name="NotifyParty" type="PartyType" minOccurs="0"/>
      <xs:element name="PersonNotifyingTheArrival" type="PartyType" minOccurs="0"/>
      <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
      <xs:element name="TransportDocument" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDocumentHouse" minOccurs="0" maxOccurs="99999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Transport document type, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ContainerNumber" type="an..17" minOccurs="0" maxOccurs="9999"/>
      <xs:element name="Error" minOccurs="0" maxOccurs="99999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TechnicalErrorMessage" type="an..1024" minOccurs="0"/>
            <xs:element name="Description" type="an..512" minOccurs="0">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Error description

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ValidationCode" type="n..8" minOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Error, coded

                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="MessageElementPath" type="an..512" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ENSEntity" minOccurs="0" maxOccurs="99999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Type" type="ENSEntityTypeType" minOccurs="1"/>
            <xs:element name="Identification" type="an..70" minOccurs="1"/>
            <xs:element name="State" type="ENSEntityStateType" minOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Control" minOccurs="0" maxOccurs="99999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExaminationPlace" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PlaceOfExamination" type="an..256" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Place of physical examination

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="ReferenceNumber" type="an..17" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Place of physical examination, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ConsignmentMaster" minOccurs="0" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
                  <xs:element name="GoodsItem" minOccurs="0" maxOccurs="9999">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="GoodsItemNumber" type="n..5" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">
Sequence number

                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="Packaging" minOccurs="0" maxOccurs="99">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
                              <xs:element name="TypeOfPackages" type="an2" minOccurs="1">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
	CL017	 Package type
	UN/ECE recommendation 21 code list as published in CS/RD2
                                  </xs:documentation>
                                  <xs:documentation xml:lang="EN">
Type of packages identification, coded

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">
Equipment identification number

                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="ConsignmentHouse" minOccurs="0" maxOccurs="99999">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="GoodsItem" minOccurs="0" maxOccurs="9999">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="GoodsItemNumber" type="n..5" minOccurs="1">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
Sequence number

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="Packaging" minOccurs="0" maxOccurs="99">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
                                    <xs:element name="TypeOfPackages" type="an2" minOccurs="1">
                                      <xs:annotation>
                                        <xs:documentation xml:lang="EN">
	CL017	 Package type
	UN/ECE recommendation 21 code list as published in CS/RD2
                                        </xs:documentation>
                                        <xs:documentation xml:lang="EN">
Type of packages identification, coded

                                        </xs:documentation>
                                      </xs:annotation>
                                    </xs:element>
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="PassiveBorderTransportMeans" minOccurs="0" maxOccurs="99">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="IdentificationNumber" type="an..35" minOccurs="1">
                                      <xs:annotation>
                                        <xs:documentation xml:lang="EN">
Identification of passive transport means, coded

                                        </xs:documentation>
                                      </xs:annotation>
                                    </xs:element>
                                    <xs:element name="TypeOfIdentification" type="TypeOfIdentificationType" minOccurs="1">
                                      <xs:annotation>
                                        <xs:documentation xml:lang="EN">
Type of identification of passive transport means, coded

                                        </xs:documentation>
                                      </xs:annotation>
                                    </xs:element>
                                    <xs:element name="Nationality" type="a2" minOccurs="0">
                                      <xs:annotation>
                                        <xs:documentation xml:lang="EN">
	CL718	 Country code (ISO 3166)
	ISO 3166 list of country codes as published in CS/RD2

                                        </xs:documentation>
                                        <xs:documentation xml:lang="EN">
Nationality of passive means of transport, coded

                                        </xs:documentation>
                                      </xs:annotation>
                                    </xs:element>
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
Equipment identification number

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="PassiveBorderTransportMeans" minOccurs="0" maxOccurs="99">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="IdentificationNumber" type="an..35" minOccurs="1">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
Identification of passive transport means, coded

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="TypeOfIdentification" type="TypeOfIdentificationType" minOccurs="1">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
Type of identification of passive transport means, coded

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="Nationality" type="a2" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation xml:lang="EN">
	CL718	 Country code (ISO 3166)
	ISO 3166 list of country codes as published in CS/RD2

                                  </xs:documentation>
                                  <xs:documentation xml:lang="EN">
Nationality of passive means of transport, coded

                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="TransportDocumentNumber" type="an..70" minOccurs="0"/>
                        <xs:element name="TransportDocumentType" type="TransportDocumentTypeType" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">
Transport document type, coded

                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">
Equipment identification number

                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="Packaging" minOccurs="0" maxOccurs="99">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ShippingMarks" type="an..512" minOccurs="0"/>
                        <xs:element name="TypeOfPackages" type="an2" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">
	CL017	 Package type
	UN/ECE recommendation 21 code list as published in CS/RD2
                            </xs:documentation>
                            <xs:documentation xml:lang="EN">
Type of packages identification, coded

                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Equipment identification number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AssessmentComplete" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
            <xs:element name="TransportDocument" minOccurs="0" maxOccurs="99999">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentNumber" type="an..70" minOccurs="1"/>
                  <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">Transport document type, coded</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
              <xs:annotation>
                <xs:documentation xml:lang="EN">Equipment identification number</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DoNotLoadDetails" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="0" maxOccurs="999"/>
            <xs:element name="TransportDocument" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document type, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="0" maxOccurs="9999">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Equipment identification number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ReferralRequestDetails" minOccurs="0" maxOccurs="999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferralRequestReference" type="an..17" minOccurs="0"/>
            <xs:element name="RequestType" type="ReferralRequestTypeType" minOccurs="0"/>
            <xs:element name="TransportDocumentMaster" minOccurs="0" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document number

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">
Transport document type, coded

                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="TransportDocumentHouse" minOccurs="0" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">Transport document number</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation xml:lang="EN">Transport document type, coded</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="SupportingDocuments" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceNumber" type="an..70" minOccurs="1"/>
                  <xs:element name="Type" type="an..4" minOccurs="1">
                    <xs:annotation>
                      <xs:documentation>CL013 Document type List of document types as published in CS/RD2</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="AdditionalInformation" minOccurs="0" maxOccurs="99">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Code" type="AdditionalInformationCodeResponseType" minOccurs="0"/>
                  <xs:element name="Text" type="an..512" minOccurs="0"/>
                  <xs:element name="Type" type="xs:string" minOccurs="0"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="MessageElementPath" type="an..512" minOccurs="0"/>
            <xs:element name="RecommendedHRCMScreeningMethod" type="an..3" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation xml:lang="EN">values of CL724 are possible</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="PreLoadingRiskAssessmentStatus" minOccurs="0" maxOccurs="999">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReceptacleIdentificationNumber" type="an..35" minOccurs="1"/>
            <xs:element name="HouseConsignmentStatusInformation" minOccurs="0" maxOccurs="999">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TransportDocumentHouseLevel" minOccurs="1">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ReferenceNumber" type="an..70" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">Transport document number</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="Type" type="TransportDocumentTypeType" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">Transport document type, coded</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="HouseConsignmentStatus" minOccurs="1" maxOccurs="9">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Code" type="an..3" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation xml:lang="EN">values of CL768 are possible</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="ReferralRequestReference" type="an..17" minOccurs="0"/>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="ResponseTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ERR">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Error by DAKOSY system</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INF">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Information by DAKOSY system</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N01">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS lifecycle validation error notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N02">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS Not complete notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N03">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Assessment complete notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N04">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional information request notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N05">
        <xs:annotation>
          <xs:documentation xml:lang="EN">High Risk Cargo &amp; Mail screening request notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N07">
        <xs:annotation>
          <xs:documentation xml:lang="EN">House consignment in incorrect state notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N08">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Control notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N09">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Authorised Economic Operator control notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N10">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Amendment Notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N11">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS pending notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N12">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Pre-Loading Risk Assessment Status notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">STI Error notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OK">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Accepted by DAKOSY system</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Q01">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Do Not Load request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Q02">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional information request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Q03">
        <xs:annotation>
          <xs:documentation xml:lang="EN">High Risk Cargo &amp; Mail screening request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R01">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS Registration Response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R04">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Arrival Registration Response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R07">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Invalidation Acceptance Response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R08">
        <xs:annotation>
          <xs:documentation xml:lang="EN">ENS Consultation results</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SpecialHandlingCodeType">
    <xs:sequence>
      <xs:element name="Code" type="an..10" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Description" type="an..35" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="SpecificCircumstanceIndicatorContentType">
    <xs:annotation>
      <xs:documentation xml:lang="EN">Specific circumstance indicator</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="F10">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Complete dataset - Straight bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F11">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Complete dataset</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F12">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - Master bill of lading only</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F13">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - Straight bill of lading only</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F14">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - House bill of lading only</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F15">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - House bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F16">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - Necessary information required</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F17">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Sea and inland waterways - Partial dataset - Necessary information required</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F20">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Complete dataset lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F21">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - Master air waybill lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F22">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - House air waybill lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F23">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - Minimum dataset lodged pre-loading </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F24">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - Minimum dataset lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F25">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - Master air waybill reference number lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F26">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Partial dataset - Minimum dataset lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F27">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Complete dataset lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F28">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Complete dataset lodged pre-loading - Direct air waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F29">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air cargo (general) - Complete dataset lodged pre-loading - Direct air waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F30">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Express consignments - Complete dataset lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F31">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Express consignments - Complete dataset lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F32">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Express consignments - Partial dataset - Minimum dataset lodged pre-loading </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F33">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Express consignments - Partial dataset - House air waybill lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F34">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Express consignments - on road - Complete dataset lodged pre-arrival</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F40">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Partial dataset - Road-Master</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F41">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Partial dataset - Rail-Master</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F42">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Master air waybill containing necessary postal air waybill information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F43">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Minimum dataset lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F44">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Receptacle identification number lodged pre-loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F45">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Postal consignments - Partial dataset - Sea and inland waterways</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F50">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road mode of transport - Master single filing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F51">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail mode of transport - Master single filing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F52">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail mode of transport - Master partial dataset</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F53">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail mode of transport - House partial dataset (all)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F54">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail mode of transport - House partial dataset (cargo HBL data)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F55">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rail mode of transport - House partial dataset (goods shipment)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F56">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road mode of transport - Master partial dataset</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F57">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road mode of transport - House partial dataset (all)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F58">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road mode of transport - House partial dataset (cargo HBL data)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F59">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road mode of transport - House partial dataset (goods shipment)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:maxLength value="3"/>
      <xs:pattern value=".{3}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="SpecificCircumstanceIndicatorContentType2">
    <xs:annotation>
      <xs:documentation xml:lang="EN">Specific circumstance indicator</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="R02">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional Information Response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R03">
        <xs:annotation>
          <xs:documentation xml:lang="EN">High Risk Cargo &amp; Mail screening response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:maxLength value="3"/>
      <xs:pattern value=".{3}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="SplitConsignmentIndicatorType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>No</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Yes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SplitConsignmentType">
    <xs:sequence>
      <xs:element name="SplitConsignmentIndicator" type="SplitConsignmentIndicatorType" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">In use for master ENS messages: F10, F11, F12, F13, F20, F21, F27, F28, F29, F30, F31, F34, F42, F45</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreviousMRN" type="an..18" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">For F10, F11, F12, F13, F30, F34, F45: Mandatory, if SplitConsignmentIndicator is true</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="SupplementaryFilingTypeType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="TransactionICSType">
    <xs:sequence>
      <xs:element name="IOPartner" type="an..10">
        <xs:annotation>
          <xs:documentation xml:lang="EN">DAKOSY Participant Code of the sending party</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IODivision1" type="an..10" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional Code used for DAKOSY-internal purposes</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IODivision2" type="an..10" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional Code used for DAKOSY-internal purposes</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IODivision3" type="an..10" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Additional Code used for DAKOSY-internal purposes</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OrgUnit" type="an..256" minOccurs="0"/>
      <xs:element name="IOReference" type="an..35">
        <xs:annotation>
          <xs:documentation xml:lang="EN">A unique reference number identifying this XML interchange.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IODateTime" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Date and time of interchange creation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Version" type="an..3">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Interface specification Version</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="TransportChargesMethodOfPaymentType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Payment in cash</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Payment by credit card</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Payment by cheque</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Other (e.g. direct debit to cash account)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="H">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Electronic funds transfer</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Y">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Account holder with carrier</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Not pre-paid</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TransportDocumentTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="C625">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Rhine Manifest</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="C664">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CN22 declaration according to Article 237 of the Regulation (ECC) No 2454/93</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="C665">
        <xs:annotation>
          <xs:documentation xml:lang="EN">CN23 declaration according to Article 237 of the Regulation (ECC) No 2454/93</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N703">
        <xs:annotation>
          <xs:documentation xml:lang="EN">House waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N704">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Master bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N705">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N714">
        <xs:annotation>
          <xs:documentation xml:lang="EN">House bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N720">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Consignment note CIM</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N722">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road list - SMGS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N730">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Road consignment note</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N740">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Air waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N741">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Master airwaybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N750">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Movement by post including parcel post</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N760">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Multimodal / combined transport document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="TransportEquipmentType">
    <xs:annotation>
      <xs:documentation xml:lang="EN"></xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ContainerSizeAndType" type="an..10" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
Container size and type identification according to CL710

          </xs:documentation>
          <xs:documentation xml:lang="EN">
Mandatory for F10, F11, F14 and F15. F34 (no GID), F50, F51
Optional for F12, F13
Not in Use for F20, F21, F22, F26, F27, F28, F29, F31, F33, F40, F41, F45
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContainerPackedStatus" type="an..3" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">
container packed status according to CL709. A=Empty and B=Not empty 

          </xs:documentation>
          <xs:documentation xml:lang="EN">
Mandatory for F10, F11, F14 and F15. F34 (no GID), F50, F51
Optional for F12, F13
Not in Use for F20, F21, F22, F26, F27, F28, F29, F31, F33, F40, F41, F45
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContainerSupplierType" type="an..3" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="EN">according to CL711; 1 = Shipper supplied and 2 = Carrier supplied</xs:documentation>
          <xs:documentation xml:lang="EN">
Mandatory for F10, F11, F14 and F15. F34 (no GID), F50, F51
Optional for F12, F13
Not in Use for F20, F21, F22, F26, F27, F28, F29, F31, F33, F40, F41, F45
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContainerIdentificationNumber" type="an..17" minOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">The format of this attribute is ZZZZ9999999 (ISO 6346). For shippers own container please use prefix "XXXX".</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NumberOfSeals" type="n..4" minOccurs="0"/>
      <xs:element name="Seal" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Is mandatory if NumberOfSeals is used</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Identifier" type="an..20" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation xml:lang="EN">
Seal number

                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="TypeOfIdentificationType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation xml:lang="EN">IMO Ship Identification Number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="20">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Wagon Number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Train Number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Registration Number of the Road Vehicle</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="31">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Registration Number of the Road Trailer</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Registration Number of the Aircraft</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="80">
        <xs:annotation>
          <xs:documentation xml:lang="EN">European Vessel Identification Number (ENI Code)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="8"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TypeOfPersonType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Natural person</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Legal person</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation xml:lang="EN">Association of persons</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:minLength value="1"/>
      <xs:maxLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
