<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:wco:datamodel:WCO:CIS:1" targetNamespace="urn:wco:datamodel:WCO:CIS:1" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:annotation>
    <xs:documentation>Generated from input release</xs:documentation>
  </xs:annotation>
  <xs:include schemaLocation="stypes.xsd" />
  <xs:include schemaLocation="htypes.xsd" />
  <!--=======================================================-->
  <!--=================  DocumentIssueDate  =================-->
  <!--=======================================================-->
  <xs:complexType name="DocumentIssueDateType">
    <xs:annotation>
      <xs:documentation>Used by 37/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3F44, IE3A44, 
IE4F44, IE4A44, IE3N04, IE3N05, IE3Q01, IE3Q02, IE3Q03, IE3Q04, IE3R02, IE3R03, 
IE4N03, IE4N05, IE4N10, IE4Q01, IE4Q02, IE4Q03, IE4Q04, IE4Q05, IE4Q06, IE4Q07, 
IE4Q08, IE4R02, IE4R03, IE4R05, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  AddressedMemberState  ===============-->
  <!--=======================================================-->
  <xs:complexType name="AddressedMemberStateType">
    <xs:annotation>
      <xs:documentation>Used by 23/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3F44, IE3A44, 
IE4F44, IE4A44, IE3N10, IE3Q04, IE3R01, IE3R07, IE4N05, IE4N12, IE4Q01, IE4Q02, 
IE4Q06, IE4R04, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Address  ======================-->
  <!--=======================================================-->
  <xs:complexType name="AddressType">
    <xs:annotation>
      <xs:documentation>Used by 14/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3F44, IE3A44, 
IE4F44, IE4A44, IE3R03, IE4R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="city" type="CityContentType" />
      <xs:element name="country" type="CountryContentType2" />
      <xs:element name="subDivision" minOccurs="0" type="SubDivisionContentType" />
      <xs:element name="streetNameLine1" minOccurs="0" type="StreetNameLine1ContentType" />
      <xs:element name="postCode" minOccurs="0" type="PostCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3034</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="streetNameLine2" minOccurs="0" type="StreetNameLine2ContentType" />
      <xs:element name="number" minOccurs="0" type="NumberContentType" />
      <xs:element name="poBox" minOccurs="0" type="PoBoxContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  Communication  ===================-->
  <!--=======================================================-->
  <xs:complexType name="CommunicationType">
    <xs:annotation>
      <xs:documentation>Used by 12/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3F44, IE3A44, 
IE4F44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identifier" type="IdentifierContentType1">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3006</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="type" type="TypeContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TotalAmountInvoiced  ================-->
  <!--=======================================================-->
  <xs:complexType name="TotalAmountInvoicedType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F32, IE3A32, IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Amount  ======================-->
  <!--=======================================================-->
  <xs:complexType name="AmountType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  AdditionalFiscalReferences  ============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalFiscalReferencesType">
    <xs:annotation>
      <xs:documentation>Used by 12/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE4N05, IE4Q01, 
IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="VATIdentificationNumber" type="VATIdentificationNumberContentType" />
      <xs:element name="role" type="RoleContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  SupportingDocuments  ================-->
  <!--=======================================================-->
  <xs:complexType name="SupportingDocumentsType">
    <xs:annotation>
      <xs:documentation>Used by 11/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3N04, IE3Q02, 
IE4Q04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" type="ReferenceNumberContentType1" />
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  AdditionalInformation  ===============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalInformationType">
    <xs:annotation>
      <xs:documentation>Used by 16/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE3F44, IE3A44, 
IE4F44, IE4A44, IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="code" minOccurs="0" type="CodeContentType1" />
      <xs:element name="text" minOccurs="0" type="TextContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalInformationType02">
    <xs:annotation>
      <xs:documentation>Used by 12/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3N04, IE3Q02, IE3R02, IE3R03, IE4Q04, IE4R02, 
IE4R03, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="code" minOccurs="0" type="CodeContentType1" />
      <xs:element name="text" minOccurs="0" type="TextContentType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  AdditionalSupplyChainActor  ============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalSupplyChainActorType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
      <xs:element name="role" type="RoleContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  ItemAmountInvoiced  ================-->
  <!--=======================================================-->
  <xs:complexType name="ItemAmountInvoicedType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F32, IE3A32, IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  CommodityCode  ===================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityCodeType">
    <xs:annotation>
      <xs:documentation>Used by 12/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43, IE4N05, IE4Q01, 
IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="harmonizedSystemSubHeadingCode" type="HarmonizedSystemSubHeadingCodeContentType" />
      <xs:element name="combinedNomenclatureCode" minOccurs="0" type="CombinedNomenclatureCodeContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Weight  ======================-->
  <!--=======================================================-->
  <xs:complexType name="WeightType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F32, IE3A32, IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="grossMass" type="GrossMassContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Packaging  =====================-->
  <!--=======================================================-->
  <xs:complexType name="PackagingType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="numberOfPackages" type="NumberOfPackagesContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  TransportDocumentHouseLevel  ============-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentHouseLevelType">
    <xs:annotation>
      <xs:documentation>Used by 20/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE4F43, IE3F44, IE4F44, IE3N09, IE3R02, 
IE3R03, IE4N05, IE4N10, IE4N11, IE4Q08, IE4R02, IE4R03, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType" />
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  ReferenceNumberUCR  ================-->
  <!--=======================================================-->
  <xs:complexType name="ReferenceNumberUCRType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ScreeningMethod  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ScreeningMethodType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3R03, IE4N05, IE4Q02, IE4R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="method" type="MethodContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  AuthorizedPerson  =================-->
  <!--=======================================================-->
  <xs:complexType name="AuthorizedPersonType">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3R03, IE4R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" type="TypeOfPersonContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  BinaryFile  ====================-->
  <!--=======================================================-->
  <xs:complexType name="BinaryFileType">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE3F32, IE3A32, IE3R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ID" type="IDContentType" />
      <xs:element name="filename" type="FilenameContentType" />
      <xs:element name="MIME" type="MIMEContentType" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  Representative  ==================-->
  <!--=======================================================-->
  <xs:complexType name="RepresentativeType">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3F32, IE4F32, IE3F43, IE4F43, IE3F44, IE4F44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3005</Rules>
            <Rules>R3033</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="status" type="StatusContentType" />
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  AdditionsAndDeductions  ==============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionsAndDeductionsType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="amount" type="AmountType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Consignee  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ConsigneeType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Commodity  =====================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F32, IE3A32, IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="descriptionOfGoods" type="DescriptionOfGoodsContentType" />
      <xs:element name="commodityCode" minOccurs="0" type="CommodityCodeType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>Cxxxx</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Consignor  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ConsignorType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3F32, IE3A32, IE4F32, IE4A32, IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Declarant  =====================-->
  <!--=======================================================-->
  <xs:complexType name="DeclarantType">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3F32, IE4F32, IE3F43, IE4F43, IE3F44, IE4F44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3005</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  FacilityPlace  ===================-->
  <!--=======================================================-->
  <xs:complexType name="FacilityPlaceType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F32, IE3A32, IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="address" type="AddressType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F32, IE4F32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="itemAmountInvoiced" minOccurs="0" type="ItemAmountInvoicedType" />
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3017</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodity" type="CommodityType" />
      <xs:element name="weight" type="WeightType" />
      <xs:element name="packaging" type="PackagingType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F32, IE3A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="result" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="authorizedPerson" type="AuthorizedPersonType" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType" />
      <xs:element name="facilityPlace" minOccurs="0" type="FacilityPlaceType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F32, IE4F32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalAmountInvoiced" minOccurs="0" type="TotalAmountInvoicedType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="totalGrossMass" type="TotalGrossMassContentType" />
      <xs:element name="additionsAndDeductions" minOccurs="0" type="AdditionsAndDeductionsType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="consignee" type="ConsigneeType" />
      <xs:element name="goodsItem" maxOccurs="99" type="GoodsItemType" />
      <xs:element name="consignor" type="ConsignorType" />
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F32, IE4F32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="999" type="ConsignmentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  Representative  ==================-->
  <!--=======================================================-->
  <xs:complexType name="RepresentativeType02">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3A32, IE4A32, IE3A43, IE4A43, IE3A44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3024</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="status" type="StatusContentType" />
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="itemAmountInvoiced" minOccurs="0" type="ItemAmountInvoicedType" />
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3024</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodity" type="CommodityType" />
      <xs:element name="weight" type="WeightType" />
      <xs:element name="packaging" type="PackagingType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  TransportDocumentHouseLevel  ============-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentHouseLevelType02">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3A32, IE4A32, IE3A43, IE4A43, IE3A44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3024</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Declarant  =====================-->
  <!--=======================================================-->
  <xs:complexType name="DeclarantType02">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3A32, IE4A32, IE3A43, IE4A43, IE3A44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3024</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="communication" maxOccurs="9" type="CommunicationType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalAmountInvoiced" minOccurs="0" type="TotalAmountInvoicedType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="totalGrossMass" type="TotalGrossMassContentType" />
      <xs:element name="additionsAndDeductions" minOccurs="0" type="AdditionsAndDeductionsType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="consignee" type="ConsigneeType" />
      <xs:element name="goodsItem" maxOccurs="99" type="GoodsItemType02" />
      <xs:element name="consignor" type="ConsignorType" />
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="999" type="ConsignmentHouseLevelType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  RegistrationDate  =================-->
  <!--=======================================================-->
  <xs:complexType name="RegistrationDateType">
    <xs:annotation>
      <xs:documentation>Used by 9/54 messages: IE4F32, IE4F43, IE4F44, IE3R01, IE4N05, IE4Q01, IE4Q02, IE4R01, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  BinaryFile  ====================-->
  <!--=======================================================-->
  <xs:complexType name="BinaryFileType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4F32, IE4A32, IE4R03, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="filename" type="FilenameContentType" />
      <xs:element name="MIME" type="MIMEContentType" />
      <xs:element name="includedBinaryObject" type="xs:base64Binary" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4F32, IE4A32</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="result" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="authorizedPerson" type="AuthorizedPersonType" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType02" />
      <xs:element name="facilityPlace" minOccurs="0" type="FacilityPlaceType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  PostalValue  ====================-->
  <!--=======================================================-->
  <xs:complexType name="PostalValueType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" use="required" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Commodity  =====================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="descriptionOfGoods" type="DescriptionOfGoodsContentType" />
      <xs:element name="cusCode" minOccurs="0" type="CusCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3020</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodityCode" minOccurs="0" type="CommodityCodeType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>Cxxxx</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Weight  ======================-->
  <!--=======================================================-->
  <xs:complexType name="WeightType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="netMass" type="NetMassContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  CountryOfOrigin  ==================-->
  <!--=======================================================-->
  <xs:complexType name="CountryOfOriginType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  PostalCharges  ===================-->
  <!--=======================================================-->
  <xs:complexType name="PostalChargesType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" use="required" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  ReferenceNumberUCR  ================-->
  <!--=======================================================-->
  <xs:complexType name="ReferenceNumberUCRType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumberUCR" type="ReferenceNumberUCRContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType03">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F43, IE4F43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3017</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="postalValue" minOccurs="0" type="PostalValueType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodity" type="CommodityType02" />
      <xs:element name="weight" minOccurs="0" type="WeightType02" />
      <xs:element name="countryOfOrigin" minOccurs="0" type="CountryOfOriginType" />
      <xs:element name="packaging" maxOccurs="99" type="PackagingType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  PostalCharges  ===================-->
  <!--=======================================================-->
  <xs:complexType name="PostalChargesType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3F43, IE3A43, IE4F43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="postalCharges" type="PostalChargesType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType03">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F43, IE4F43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalGrossMass" type="TotalGrossMassContentType" />
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="consignee" type="ConsigneeType" />
      <xs:element name="goodsItem" maxOccurs="99" type="GoodsItemType03" />
      <xs:element name="consignor" type="ConsignorType" />
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesType02">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType02">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType03">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F43, IE4F43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="99999" type="ConsignmentHouseLevelType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3024</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="postalValue" minOccurs="0" type="PostalValueType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3037</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodity" type="CommodityType02" />
      <xs:element name="weight" minOccurs="0" type="WeightType02" />
      <xs:element name="countryOfOrigin" minOccurs="0" type="CountryOfOriginType" />
      <xs:element name="packaging" maxOccurs="99" type="PackagingType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalGrossMass" type="TotalGrossMassContentType" />
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="consignee" type="ConsigneeType" />
      <xs:element name="goodsItem" maxOccurs="99" type="GoodsItemType04" />
      <xs:element name="consignor" type="ConsignorType" />
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesType02">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3038</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType02">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3023</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A43, IE4A43</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="99999" type="ConsignmentHouseLevelType04" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  Receptacle  ====================-->
  <!--=======================================================-->
  <xs:complexType name="ReceptacleType">
    <xs:annotation>
      <xs:documentation>Used by 19/54 messages: IE3F44, IE3A44, IE4F44, IE4A44, IE3N03, IE3N09, IE3Q01, IE4N04, IE4N05, IE4N10, 
IE4N11, IE4Q01, IE4Q02, IE4Q03, IE4Q08, IE4R05, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacleIdentificationNumber" type="ReceptacleIdentificationNumberContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType05">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F44, IE4F44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" type="ReceptacleType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType05">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3F44, IE4F44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="99999" type="ConsignmentHouseLevelType05" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType06">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" type="ReceptacleType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType06">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3A44, IE4A44</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" maxOccurs="99999" type="ConsignmentHouseLevelType06" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  NotificationDate  =================-->
  <!--=======================================================-->
  <xs:complexType name="NotificationDateType">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3N01, IE3N09, IE3N99, IE4N01, IE4N11, IE4N99</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  Representative  ==================-->
  <!--=======================================================-->
  <xs:complexType name="RepresentativeType03">
    <xs:annotation>
      <xs:documentation>Used by 26/54 messages: IE3N01, IE3N03, IE3N09, IE3N10, IE3N99, IE3Q01, IE3Q02, IE3Q03, IE3Q04, IE3R01, 
IE3R02, IE3R03, IE3R07, IE4N01, IE4N04, IE4N11, IE4N12, IE4N99, IE4Q03, IE4Q04, 
IE4Q05, IE4Q06, IE4R01, IE4R02, IE4R03, IE4R04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  TransportDocument  =================-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentType">
    <xs:annotation>
      <xs:documentation>Used by 28/54 messages: IE3N01, IE3N03, IE3N04, IE3N05, IE3N09, IE3N10, IE3N99, IE3Q01, IE3Q02, IE3Q03, 
IE3Q04, IE3R01, IE3R02, IE3R03, IE3R07, IE4N01, IE4N04, IE4N11, IE4N12, IE4N99, 
IE4Q03, IE4Q04, IE4Q05, IE4Q06, IE4Q10, IE4R02, IE4R03, IE4R04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType" />
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Declarant  =====================-->
  <!--=======================================================-->
  <xs:complexType name="DeclarantType03">
    <xs:annotation>
      <xs:documentation>Used by 26/54 messages: IE3N01, IE3N03, IE3N09, IE3N10, IE3N99, IE3Q01, IE3Q02, IE3Q03, IE3Q04, IE3R01, 
IE3R02, IE3R03, IE3R07, IE4N01, IE4N04, IE4N11, IE4N12, IE4N99, IE4Q03, IE4Q04, 
IE4Q05, IE4Q06, IE4R01, IE4R02, IE4R03, IE4R04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  CustomsOfficeOfFirstEntry  =============-->
  <!--=======================================================-->
  <xs:complexType name="CustomsOfficeOfFirstEntryType">
    <xs:annotation>
      <xs:documentation>Used by 11/54 messages: IE3N01, IE3N10, IE3N99, IE3Q04, IE3R01, IE3R07, IE4N01, IE4N12, IE4N99, IE4Q06, 
IE4R04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" type="ReferenceNumberContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Pointer  ======================-->
  <!--=======================================================-->
  <xs:complexType name="PointerType">
    <xs:annotation>
      <xs:documentation>Used by 12/54 messages: IE3N01, IE3N04, IE3N99, IE3Q02, IE4N01, IE4N05, IE4N99, IE4Q02, IE4Q04, IE4R05, 
IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="messageElementPath" type="MessageElementPathContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======================  Error  =======================-->
  <!--=======================================================-->
  <xs:complexType name="ErrorType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N01, IE4N01</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="description" type="DescriptionContentType2" />
      <xs:element name="validationCode" type="ValidationCodeContentType" />
      <xs:element name="pointer" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  CompletionDate  ==================-->
  <!--=======================================================-->
  <xs:complexType name="CompletionDateType">
    <xs:annotation>
      <xs:documentation>Used by 7/54 messages: IE3N03, IE3N10, IE3R07, IE4N04, IE4N12, IE4N13, IE4R04</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Packaging  =====================-->
  <!--=======================================================-->
  <xs:complexType name="PackagingType02">
    <xs:annotation>
      <xs:documentation>Used by 10/54 messages: IE3N03, IE3N09, IE3Q01, IE4N04, IE4N05, IE4N11, IE4Q03, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="shippingMarks" type="ShippingMarksContentType" />
      <xs:element name="typeOfPackages" type="TypeOfPackagesContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TransportEquipment  ================-->
  <!--=======================================================-->
  <xs:complexType name="TransportEquipmentType">
    <xs:annotation>
      <xs:documentation>Used by 13/54 messages: IE3N03, IE3N09, IE3Q01, IE4N04, IE4N05, IE4N10, IE4N11, IE4Q03, IE4Q07, IE4Q08, 
IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="containerIdentificationNumber" type="ContainerIdentificationNumberContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ResponsibleMemberState  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ResponsibleMemberStateType">
    <xs:annotation>
      <xs:documentation>Used by 20/54 messages: IE3N03, IE3N04, IE3N05, IE3Q01, IE3Q02, IE3Q03, IE3R02, IE3R03, IE4N03, IE4N04, 
IE4N05, IE4Q01, IE4Q02, IE4Q03, IE4Q04, IE4Q05, IE4R02, IE4R03, IE4R05, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Carrier  ======================-->
  <!--=======================================================-->
  <xs:complexType name="CarrierType">
    <xs:annotation>
      <xs:documentation>Used by 13/54 messages: IE3N03, IE3N04, IE3N05, IE3N09, IE3Q01, IE3Q03, IE3R01, IE4N04, IE4N11, IE4Q03, 
IE4Q04, IE4Q05, IE4R01</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  AssessmentComplete  ================-->
  <!--=======================================================-->
  <xs:complexType name="AssessmentCompleteType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N03, IE4N04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  TransportDocumentHouse  ==============-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentHouseType">
    <xs:annotation>
      <xs:documentation>Used by 8/54 messages: IE3N04, IE3N05, IE3Q01, IE3Q02, IE3Q03, IE4Q03, IE4Q04, IE4Q05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType" />
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ReferralRequestDetails  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ReferralRequestDetailsType">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE3N04, IE3Q02, IE4Q04</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceRequestReference" type="ReferenceRequestReferenceContentType" />
      <xs:element name="requestType" type="RequestTypeContentType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  TransportDocument  =================-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3N05, IE3Q03, IE4Q05, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" minOccurs="0" type="DocumentNumberContentType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ReferralRequestDetails  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ReferralRequestDetailsType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N05, IE4Q05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceRequestReference" type="ReferenceRequestReferenceContentType" />
      <xs:element name="recommendedHRCMScreeningMethod" minOccurs="0" maxOccurs="9" type="RecommendedHRCMScreeningMethodContentType" />
      <xs:element name="requestType" type="RequestTypeContentType" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ScheduledControlDate  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ScheduledControlDateType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  CustomsOfficeOfControl  ==============-->
  <!--=======================================================-->
  <xs:complexType name="CustomsOfficeOfControlType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3N09, IE4N11, IE4R05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" type="ReferenceNumberContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  ExaminationPlace  =================-->
  <!--=======================================================-->
  <xs:complexType name="ExaminationPlaceType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="placeOfExamination" minOccurs="0" type="PlaceOfExaminationContentType" />
      <xs:element name="referenceNumber" minOccurs="0" type="ReferenceNumberContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType05">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3N09, IE4N05, IE4N11, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  PassiveBorderTransportMeans  ============-->
  <!--=======================================================-->
  <xs:complexType name="PassiveBorderTransportMeansType">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3N09, IE4N05, IE4N11, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType2" />
      <xs:element name="typeOfIdentification" type="TypeOfIdentificationContentType" />
      <xs:element name="nationality" minOccurs="0" type="NationalityContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType06">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE3N09, IE4N05, IE4N11, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" type="GoodsItemNumberContentType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType07">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType06" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType07">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType05" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99" type="ConsignmentHouseLevelType07" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlSubject  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlSubjectType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" type="ConsignmentMasterLevelType07">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3030</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Control  ======================-->
  <!--=======================================================-->
  <xs:complexType name="ControlType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N09, IE4N11</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="examinationPlace" type="ExaminationPlaceType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3029</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="controlSubject" type="ControlSubjectType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======================  Error  =======================-->
  <!--=======================================================-->
  <xs:complexType name="ErrorType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3N99, IE4N99</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="technicalErrorMessage" minOccurs="0" type="TechnicalErrorMessageContentType" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType2" />
      <xs:element name="validationCode" type="ValidationCodeContentType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  TransportDocument  =================-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE3Q01, IE4Q03, IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType" />
      <xs:element name="type" type="TypeContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  DoNotLoadDetails  =================-->
  <!--=======================================================-->
  <xs:complexType name="DoNotLoadDetailsType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3Q01, IE4Q03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType03" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ReferralRequestDetails  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ReferralRequestDetailsType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE3Q03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceRequestReference" type="ReferenceRequestReferenceContentType" />
      <xs:element name="recommendedHRCMScreeningMethod" minOccurs="0" type="RecommendedHRCMScreeningMethodContentType" />
      <xs:element name="requestType" type="RequestTypeContentType" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  BinaryAttachment  =================-->
  <!--=======================================================-->
  <xs:complexType name="BinaryAttachmentType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE3R02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ID" type="IDContentType" />
      <xs:element name="filename" type="FilenameContentType" />
      <xs:element name="MIME" type="MIMEContentType" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  AdditionalInformationResponse  ===========-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalInformationResponseType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE3R02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referralRequestReference" type="ReferralRequestReferenceContentType1" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="binaryAttachment" minOccurs="0" maxOccurs="9" type="BinaryAttachmentType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  FacilityPlace  ===================-->
  <!--=======================================================-->
  <xs:complexType name="FacilityPlaceType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE3R03, IE4R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="address" type="AddressType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3002</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE3R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referralRequestReference" type="ReferralRequestReferenceContentType2" />
      <xs:element name="result" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="authorizedPerson" type="AuthorizedPersonType" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType" />
      <xs:element name="facilityPlace" minOccurs="0" type="FacilityPlaceType02" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="responsibleMemberState" minOccurs="0" type="ResponsibleMemberStateType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  AdditionalFiscalReferences  ============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalFiscalReferencesType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="VATIdentificationNumber" minOccurs="0" type="VATIdentificationNumberContentType" />
      <xs:element name="role" minOccurs="0" type="RoleContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  SupportingDocuments  ================-->
  <!--=======================================================-->
  <xs:complexType name="SupportingDocumentsType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" minOccurs="0" type="ReferenceNumberContentType1" />
      <xs:element name="type" minOccurs="0" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  AdditionalSupplyChainActor  ============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalSupplyChainActorType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="role" minOccurs="0" type="RoleContentType2" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalSupplyChainActorType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="role" minOccurs="0" type="RoleContentType2" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  TransportDocumentMasterLevel  ===========-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentMasterLevelType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" minOccurs="0" type="DocumentNumberContentType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportDocumentMasterLevelType02">
    <xs:annotation>
      <xs:documentation>Used by 6/54 messages: IE4N05, IE4N10, IE4Q08, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" type="DocumentNumberContentType" />
      <xs:element name="type" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Carrier  ======================-->
  <!--=======================================================-->
  <xs:complexType name="CarrierType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CarrierType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Address  ======================-->
  <!--=======================================================-->
  <xs:complexType name="AddressType02">
    <xs:annotation>
      <xs:documentation>Used by 5/54 messages: IE4N05, IE4Q01, IE4Q02, IE4Q07, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="city" minOccurs="0" type="CityContentType" />
      <xs:element name="country" minOccurs="0" type="CountryContentType2" />
      <xs:element name="subDivision" minOccurs="0" type="SubDivisionContentType" />
      <xs:element name="streetNameLine1" minOccurs="0" type="StreetNameLine1ContentType" />
      <xs:element name="postCode" minOccurs="0" type="PostCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3034</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="streetNameLine2" minOccurs="0" type="StreetNameLine2ContentType" />
      <xs:element name="number" minOccurs="0" type="NumberContentType" />
      <xs:element name="poBox" minOccurs="0" type="PoBoxContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AddressType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" minOccurs="0" type="CountryContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  Communication  ===================-->
  <!--=======================================================-->
  <xs:complexType name="CommunicationType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identifier" minOccurs="0" type="IdentifierContentType1" />
      <xs:element name="type" minOccurs="0" type="TypeContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  CommodityCode  ===================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityCodeType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="harmonizedSystemSubHeadingCode" minOccurs="0" type="HarmonizedSystemSubHeadingCodeContentType" />
      <xs:element name="combinedNomenclatureCode" minOccurs="0" type="CombinedNomenclatureCodeContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Weight  ======================-->
  <!--=======================================================-->
  <xs:complexType name="WeightType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="grossMass" minOccurs="0" type="GrossMassContentType" />
      <xs:element name="netMass" minOccurs="0" type="NetMassContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="WeightType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="grossMass" minOccurs="0" type="GrossMassContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  CountryOfOrigin  ==================-->
  <!--=======================================================-->
  <xs:complexType name="CountryOfOriginType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" minOccurs="0" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Packaging  =====================-->
  <!--=======================================================-->
  <xs:complexType name="PackagingType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="numberOfPackages" minOccurs="0" type="NumberOfPackagesContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PackagingType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="shippingMarks" minOccurs="0" type="ShippingMarksContentType" />
      <xs:element name="numberOfPackages" minOccurs="0" type="NumberOfPackagesContentType" />
      <xs:element name="typeOfPackages" minOccurs="0" type="TypeOfPackagesContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  PostalCharges  ===================-->
  <!--=======================================================-->
  <xs:complexType name="PostalChargesType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PostalChargesType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  TransportDocumentHouseLevel  ============-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentHouseLevelType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" minOccurs="0" type="DocumentNumberContentType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N05, IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="result" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  MemberStateOfControl  ===============-->
  <!--=======================================================-->
  <xs:complexType name="MemberStateOfControlType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N05, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  DateAndTimeOfCompletion  ==============-->
  <!--=======================================================-->
  <xs:complexType name="DateAndTimeOfCompletionType">
    <xs:annotation>
      <xs:documentation>Used by 5/54 messages: IE4N05, IE4Q02, IE4R05, IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType08">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" type="SequenceNumberContentType1" />
      <xs:element name="receptacle" minOccurs="0" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType06" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  AdditionalInformation  ===============-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalInformationType03">
    <xs:annotation>
      <xs:documentation>Used by 5/54 messages: IE4N05, IE4Q02, IE4S01, IE4S02, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="code" minOccurs="0" type="CodeContentType1" />
      <xs:element name="text" minOccurs="0" type="TextContentType" />
      <xs:element name="type" type="TypeContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  DocumentIssueDate  =================-->
  <!--=======================================================-->
  <xs:complexType name="DocumentIssueDateType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  SplitConsignment  =================-->
  <!--=======================================================-->
  <xs:complexType name="SplitConsignmentType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="splitConsignmentIndicator" minOccurs="0" type="SplitConsignmentIndicatorContentType" />
      <xs:element name="previousMRN" minOccurs="0" type="PreviousMRNContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  ActualDateAndTimeOfDeparture  ===========-->
  <!--=======================================================-->
  <xs:complexType name="ActualDateAndTimeOfDepartureType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--==========  EstimatedDateAndTimeOfDeparture  ==========-->
  <!--=======================================================-->
  <xs:complexType name="EstimatedDateAndTimeOfDepartureType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  ActualDateAndTimeOfArrival  ============-->
  <!--=======================================================-->
  <xs:complexType name="ActualDateAndTimeOfArrivalType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  EstimatedDateAndTimeOfArrival  ===========-->
  <!--=======================================================-->
  <xs:complexType name="EstimatedDateAndTimeOfArrivalType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======  CountriesOfRoutingOfMeansOfTransport  =======-->
  <!--=======================================================-->
  <xs:complexType name="CountriesOfRoutingOfMeansOfTransportType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" minOccurs="0" type="SequenceNumberContentType2" />
      <xs:element name="country" minOccurs="0" type="CountryContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  DangerousGoods  ==================-->
  <!--=======================================================-->
  <xs:complexType name="DangerousGoodsType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="UNNumber" minOccurs="0" type="UNNumberContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======================  Seal  =======================-->
  <!--=======================================================-->
  <xs:complexType name="SealType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identifier" minOccurs="0" type="IdentifierContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  TransportCharges  =================-->
  <!--=======================================================-->
  <xs:complexType name="TransportChargesType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="methodOfPayment" minOccurs="0" type="MethodOfPaymentContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  PostalValue  ====================-->
  <!--=======================================================-->
  <xs:complexType name="PostalValueType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="ContentType_1">
        <xs:attribute name="currencyID" type="CurrencyIDContentType" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  PassiveBorderTransportMeans  ============-->
  <!--=======================================================-->
  <xs:complexType name="PassiveBorderTransportMeansType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType2" />
      <xs:element name="typeOfIdentification" minOccurs="0" type="TypeOfIdentificationContentType" />
      <xs:element name="nationality" minOccurs="0" type="NationalityContentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PassiveBorderTransportMeansType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType2" />
      <xs:element name="typeOfIdentification" minOccurs="0" type="TypeOfIdentificationContentType" />
      <xs:element name="typeOfMeansOfTransport" minOccurs="0" type="TypeOfMeansOfTransportContentType" />
      <xs:element name="nationality" minOccurs="0" type="NationalityContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==========  CountriesOfRoutingOfConsignment  ==========-->
  <!--=======================================================-->
  <xs:complexType name="CountriesOfRoutingOfConsignmentType">
    <xs:annotation>
      <xs:documentation>Used by 5/54 messages: IE4N05, IE4Q01, IE4Q02, IE4Q07, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" minOccurs="0" type="SequenceNumberContentType2" />
      <xs:element name="country" minOccurs="0" type="CountryContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  SupplementaryDeclarant  ==============-->
  <!--=======================================================-->
  <xs:complexType name="SupplementaryDeclarantType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="supplementaryFilingType" minOccurs="0" type="SupplementaryFilingTypeContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  CustomsOfficeOfFirstEntry  =============-->
  <!--=======================================================-->
  <xs:complexType name="CustomsOfficeOfFirstEntryType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" minOccurs="0" type="ReferenceNumberContentType2" />
      <xs:element name="estimatedActualIndicator" minOccurs="0" type="EstimatedActualIndicatorContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Consignee  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ConsigneeType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConsigneeType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Commodity  =====================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="descriptionOfGoods" minOccurs="0" type="DescriptionOfGoodsContentType" />
      <xs:element name="cusCode" minOccurs="0" type="CusCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3020</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodityCode" minOccurs="0" type="CommodityCodeType02" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CommodityType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="descriptionOfGoods" minOccurs="0" type="DescriptionOfGoodsContentType" />
      <xs:element name="cusCode" minOccurs="0" type="CusCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3020</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="commodityCode" minOccurs="0" type="CommodityCodeType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3025</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="dangerousGoods" minOccurs="0" maxOccurs="99" type="DangerousGoodsType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Consignor  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ConsignorType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConsignorType03">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  Representative  ==================-->
  <!--=======================================================-->
  <xs:complexType name="RepresentativeType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="status" minOccurs="0" type="StatusContentType" />
      <xs:element name="address" minOccurs="0" maxOccurs="unbounded" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Declarant  =====================-->
  <!--=======================================================-->
  <xs:complexType name="DeclarantType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" maxOccurs="unbounded" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisResult  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisResultType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisType" type="RiskAnalysisTypeContentType" />
      <xs:element name="riskAreaCode" minOccurs="0" type="RiskAreaCodeContentType" />
      <xs:element name="riskLevel" minOccurs="0" type="RiskLevelContentType" />
      <xs:element name="riskCriteriaIdentifier" minOccurs="0" type="RiskCriteriaIdentifierContentType" />
      <xs:element name="resultCode" minOccurs="0" type="ResultCodeContentType" />
      <xs:element name="resultText" minOccurs="0" type="ResultTextContentType" />
      <xs:element name="dateAndTimeOfCompletion" minOccurs="0" type="DateAndTimeOfCompletionType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType08">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType05" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99" type="ConsignmentHouseLevelType08" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  ActiveBorderTransportMeans  ============-->
  <!--=======================================================-->
  <xs:complexType name="ActiveBorderTransportMeansType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType2" />
      <xs:element name="typeOfIdentification" minOccurs="0" type="TypeOfIdentificationContentType" />
      <xs:element name="typeOfMeansOfTransport" minOccurs="0" type="TypeOfMeansOfTransportContentType" />
      <xs:element name="nationality" minOccurs="0" type="NationalityContentType" />
      <xs:element name="ModeOfTransport" minOccurs="0" type="ModeOfTransportContentType" />
      <xs:element name="actualDateAndTimeOfDeparture" minOccurs="0" type="ActualDateAndTimeOfDepartureType" />
      <xs:element name="estimatedDateAndTimeOfDeparture" minOccurs="0" type="EstimatedDateAndTimeOfDepartureType" />
      <xs:element name="actualDateAndTimeOfArrival" minOccurs="0" type="ActualDateAndTimeOfArrivalType" />
      <xs:element name="estimatedDateAndTimeOfArrival" minOccurs="0" type="EstimatedDateAndTimeOfArrivalType" />
      <xs:element name="conveyanceReferenceNumber" minOccurs="0" type="ConveyanceReferenceNumberContentType" />
      <xs:element name="countriesOfRoutingOfMeansOfTransport" minOccurs="0" maxOccurs="99" type="CountriesOfRoutingOfMeansOfTransportType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  PlaceOfAcceptance  =================-->
  <!--=======================================================-->
  <xs:complexType name="PlaceOfAcceptanceType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="location" minOccurs="0" type="LocationContentType" />
      <xs:element name="UNLOCODE" minOccurs="0" type="UNLOCODEContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Carrier  ======================-->
  <!--=======================================================-->
  <xs:complexType name="CarrierType04">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TransportEquipment  ================-->
  <!--=======================================================-->
  <xs:complexType name="TransportEquipmentType02">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="containerSizeAndType" minOccurs="0" type="ContainerSizeAndTypeContentType" />
      <xs:element name="containerPackedStatus" minOccurs="0" type="ContainerPackedStatusContentType" />
      <xs:element name="containerSupplierType" minOccurs="0" type="ContainerSupplierTypeContentType" />
      <xs:element name="containerIdentificationNumber" minOccurs="0" type="ContainerIdentificationNumberContentType" />
      <xs:element name="numberOfSeals" minOccurs="0" type="NumberOfSealsContentType" />
      <xs:element name="seal" minOccurs="0" maxOccurs="9" type="SealType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  PlaceOfDelivery  ==================-->
  <!--=======================================================-->
  <xs:complexType name="PlaceOfDeliveryType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="location" minOccurs="0" type="LocationContentType" />
      <xs:element name="UNLOCODE" minOccurs="0" type="UNLOCODEContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  PostalCharges  ===================-->
  <!--=======================================================-->
  <xs:complexType name="PostalChargesType05">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesType04" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======================  Buyer  =======================-->
  <!--=======================================================-->
  <xs:complexType name="BuyerType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Seller  ======================-->
  <!--=======================================================-->
  <xs:complexType name="SellerType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  NotifyParty  ====================-->
  <!--=======================================================-->
  <xs:complexType name="NotifyPartyType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="AEOStatus" minOccurs="0" type="AEOStatusContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  PlaceOfLoading  ==================-->
  <!--=======================================================-->
  <xs:complexType name="PlaceOfLoadingType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="location" minOccurs="0" type="LocationContentType" />
      <xs:element name="UNLOCODE" minOccurs="0" type="UNLOCODEContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  PlaceOfUnloading  =================-->
  <!--=======================================================-->
  <xs:complexType name="PlaceOfUnloadingType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="location" minOccurs="0" type="LocationContentType" />
      <xs:element name="UNLOCODE" minOccurs="0" type="UNLOCODEContentType" />
      <xs:element name="address" minOccurs="0" type="AddressType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType07">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="itemAmountInvoiced" minOccurs="0" type="ItemAmountInvoicedContentType" />
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="postalValue" minOccurs="0" type="PostalValueContentType" />
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType02" />
      <xs:element name="commodity" minOccurs="0" type="CommodityType03" />
      <xs:element name="weight" minOccurs="0" type="WeightType03" />
      <xs:element name="countryOfOrigin" minOccurs="0" type="CountryOfOriginType02" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType03" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsItemType08">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="99" type="AdditionalSupplyChainActorType03" />
      <xs:element name="commodity" minOccurs="0" type="CommodityType04" />
      <xs:element name="weight" minOccurs="0" type="WeightType04" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType04" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsItemType09">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="itemAmountInvoiced" minOccurs="0" type="ItemAmountInvoicedContentType" />
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="postalValue" minOccurs="0" type="PostalValueType02" />
      <xs:element name="receptacleIdentificationNumber" minOccurs="0" type="ReceptacleIdentificationNumberContentType" />
      <xs:element name="typeOfGoods" minOccurs="0" type="TypeOfGoodsContentType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType03" />
      <xs:element name="commodity" minOccurs="0" type="CommodityType04" />
      <xs:element name="weight" minOccurs="0" type="WeightType03" />
      <xs:element name="countryOfOrigin" minOccurs="0" type="CountryOfOriginType02" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType04" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  PartialENSFilingHeader  ==============-->
  <!--=======================================================-->
  <xs:complexType name="PartialENSFilingHeaderType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SpecificCircumstanceIndicator" minOccurs="0" type="SpecificCircumstanceIndicatorContentType" />
      <xs:element name="registrationDate" minOccurs="0" type="RegistrationDateType" />
      <xs:element name="documentIssueDate" minOccurs="0" type="DocumentIssueDateType" />
      <xs:element name="MRN" minOccurs="0" type="MRNContentType" />
      <xs:element name="requestReference" minOccurs="0" type="RequestReferenceContentType" />
      <xs:element name="addressedMemberState" minOccurs="0" type="AddressedMemberStateType" />
      <xs:element name="representative" minOccurs="0" type="RepresentativeType04" />
      <xs:element name="declarant" minOccurs="0" type="DeclarantType04" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" type="CategoryContentType1" />
      <xs:element name="riskAnalysisResult" maxOccurs="99" type="RiskAnalysisResultType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlSubject  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlSubjectType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" type="ConsignmentMasterLevelType08">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3030</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  GoodsShipment  ===================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsShipmentType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MRN" minOccurs="0" type="MRNContentType" />
      <xs:element name="buyer" minOccurs="0" type="BuyerType" />
      <xs:element name="seller" minOccurs="0" type="SellerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType09">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalAmountInvoiced" minOccurs="0" type="TotalAmountInvoicedContentType" />
      <xs:element name="totalGrossMass" minOccurs="0" type="TotalGrossMassContentType" />
      <xs:element name="additionsAndDeductions" minOccurs="0" type="AdditionsAndDeductionsType" />
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType02" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType02" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType" />
      <xs:element name="carrier" minOccurs="0" type="CarrierType02" />
      <xs:element name="consignee" minOccurs="0" type="ConsigneeType02" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType07" />
      <xs:element name="consignor" minOccurs="0" type="ConsignorType02" />
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesType03" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType03" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConsignmentHouseLevelType10">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalAmountInvoiced" minOccurs="0" type="TotalAmountInvoicedContentType" />
      <xs:element name="MRN" minOccurs="0" type="MRNContentType" />
      <xs:element name="sequenceNumber" minOccurs="0" type="SequenceNumberContentType1" />
      <xs:element name="containerIndicator" minOccurs="0" type="ContainerIndicatorContentType2" />
      <xs:element name="totalGrossMass" minOccurs="0" type="TotalGrossMassContentType" />
      <xs:element name="additionsAndDeductions" minOccurs="0" type="AdditionsAndDeductionsType" />
      <xs:element name="additionalFiscalReferences" minOccurs="0" type="AdditionalFiscalReferencesType" />
      <xs:element name="receptacle" minOccurs="0" type="ReceptacleType" />
      <xs:element name="placeOfAcceptance" minOccurs="0" type="PlaceOfAcceptanceType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType03" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType" />
      <xs:element name="carrier" minOccurs="0" type="CarrierType03" />
      <xs:element name="consignee" minOccurs="0" type="ConsigneeType03" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType09" />
      <xs:element name="consignor" minOccurs="0" type="ConsignorType03" />
      <xs:element name="postalCharges" minOccurs="0" type="PostalChargesType05" />
      <xs:element name="transportCharges" minOccurs="0" type="TransportChargesType" />
      <xs:element name="placeOfDelivery" minOccurs="0" type="PlaceOfDeliveryType" />
      <xs:element name="goodsShipment" minOccurs="0" type="GoodsShipmentType" />
      <xs:element name="countriesOfRoutingOfConsignment" minOccurs="0" maxOccurs="99" type="CountriesOfRoutingOfConsignmentType" />
      <xs:element name="notifyParty" minOccurs="0" type="NotifyPartyType" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType03" />
      <xs:element name="supplementaryDeclarant" minOccurs="0" maxOccurs="99" type="SupplementaryDeclarantType" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType03" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ControlRecommendations  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ControlRecommendationsType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="controlSubject" type="ControlSubjectType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType03">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType09">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType09" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConsignmentMasterLevelType10">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4N05, IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="containerIndicator" minOccurs="0" type="ContainerIndicatorContentType1" />
      <xs:element name="totalGrossMass" minOccurs="0" type="TotalGrossMassContentType" />
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="placeOfAcceptance" minOccurs="0" type="PlaceOfAcceptanceType" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType03" />
      <xs:element name="carrier" minOccurs="0" type="CarrierType04" />
      <xs:element name="consignee" minOccurs="0" type="ConsigneeType03" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType08" />
      <xs:element name="consignor" minOccurs="0" type="ConsignorType03" />
      <xs:element name="transportCharges" minOccurs="0" type="TransportChargesType" />
      <xs:element name="placeOfDelivery" minOccurs="0" type="PlaceOfDeliveryType" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType10" />
      <xs:element name="placeOfLoading" minOccurs="0" type="PlaceOfLoadingType" />
      <xs:element name="notifyParty" minOccurs="0" type="NotifyPartyType" />
      <xs:element name="supplementaryDeclarant" minOccurs="0" maxOccurs="99" type="SupplementaryDeclarantType" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType02" />
      <xs:element name="referenceNumberUCR" minOccurs="0" type="ReferenceNumberUCRType" />
      <xs:element name="placeOfUnloading" minOccurs="0" type="PlaceOfUnloadingType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RelatedPLACI  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedPLACIType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType09" />
      <xs:element name="partialENSFilingHeader" minOccurs="0" maxOccurs="99999" type="PartialENSFilingHeaderType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  RelatedENS  ====================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedENSType">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4N05, IE4Q01, IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DocumentIssueDate" minOccurs="0" type="DocumentIssueDateType02" />
      <xs:element name="SpecificCircumstanceIndicator" minOccurs="0" type="SpecificCircumstanceIndicatorContentType" />
      <xs:element name="MRN" minOccurs="0" type="MRNContentType" />
      <xs:element name="reEntryIndicator" minOccurs="0" type="ReEntryIndicatorContentType" />
      <xs:element name="splitConsignment" minOccurs="0" type="SplitConsignmentType" />
      <xs:element name="representative" minOccurs="0" type="RepresentativeType04" />
      <xs:element name="activeBorderTransportMeans" minOccurs="0" type="ActiveBorderTransportMeansType" />
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType10" />
      <xs:element name="declarant" minOccurs="0" type="DeclarantType04" />
      <xs:element name="customsOfficeOfFirstEntry" minOccurs="0" type="CustomsOfficeOfFirstEntryType02" />
      <xs:element name="partialENSFilingHeader" minOccurs="0" maxOccurs="99999" type="PartialENSFilingHeaderType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  AmendmentDate  ===================-->
  <!--=======================================================-->
  <xs:complexType name="AmendmentDateType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N06</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  DateAndTimeOfPresentation  =============-->
  <!--=======================================================-->
  <xs:complexType name="DateAndTimeOfPresentationType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N10</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType11">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N10, IE4Q08</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" type="SequenceNumberContentType1" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  PersonPresentingTheGoods  =============-->
  <!--=======================================================-->
  <xs:complexType name="PersonPresentingTheGoodsType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N10</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  CustomsOfficeOfPresentation  ============-->
  <!--=======================================================-->
  <xs:complexType name="CustomsOfficeOfPresentationType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4N10, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" type="ReferenceNumberContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType11">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N10</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99" type="ConsignmentHouseLevelType11" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  RelatedENS  ====================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedENSType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4N10</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MRN" type="MRNContentType" />
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType11" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Commodity  =====================-->
  <!--=======================================================-->
  <xs:complexType name="CommodityType05">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="descriptionOfGoods" minOccurs="0" type="DescriptionOfGoodsContentType" />
      <xs:element name="commodityCode" minOccurs="0" type="CommodityCodeType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  InvolvedMemberState  ================-->
  <!--=======================================================-->
  <xs:complexType name="InvolvedMemberStateType">
    <xs:annotation>
      <xs:documentation>Used by 4/54 messages: IE4Q01, IE4Q02, IE4R05, IE4S01</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  DateAndTime  ====================-->
  <!--=======================================================-->
  <xs:complexType name="DateAndTimeType">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType10">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType02" />
      <xs:element name="commodity" minOccurs="0" type="CommodityType05" />
      <xs:element name="weight" minOccurs="0" type="WeightType04" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TimerForCompletion  ================-->
  <!--=======================================================-->
  <xs:complexType name="TimerForCompletionType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4Q01, IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="dateAndTime" type="DateAndTimeType" />
      <xs:element name="type" type="TypeContentType4" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType12">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="totalGrossMass" minOccurs="0" type="TotalGrossMassContentType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType" />
      <xs:element name="additionalSupplyChainActor" minOccurs="0" maxOccurs="9" type="AdditionalSupplyChainActorType02" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType" />
      <xs:element name="carrier" minOccurs="0" type="CarrierType02" />
      <xs:element name="consignee" minOccurs="0" type="ConsigneeType02" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType10" />
      <xs:element name="consignor" minOccurs="0" type="ConsignorType02" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisRequest  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisRequestType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q01</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="timerForCompletion" type="TimerForCompletionType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType12">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q01, IE4Q02, IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType12" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q01</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" type="CategoryContentType1" />
      <xs:element name="riskAnalysisRequest" type="RiskAnalysisRequestType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RelatedPLACI  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedPLACIType02">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4Q01, IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType12" />
      <xs:element name="partialENSFilingHeader" minOccurs="0" maxOccurs="99999" type="PartialENSFilingHeaderType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisResult  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisResultType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisType" type="RiskAnalysisTypeContentType" />
      <xs:element name="riskAreaCode" minOccurs="0" type="RiskAreaCodeContentType" />
      <xs:element name="riskLevel" minOccurs="0" type="RiskLevelContentType" />
      <xs:element name="riskCriteriaIdentifier" minOccurs="0" type="RiskCriteriaIdentifierContentType" />
      <xs:element name="resultCode" minOccurs="0" type="ResultCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3010</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="resultText" minOccurs="0" type="ResultTextContentType" />
      <xs:element name="dateAndTimeOfCompletion" minOccurs="0" type="DateAndTimeOfCompletionType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  SupplementaryRiskInformation  ===========-->
  <!--=======================================================-->
  <xs:complexType name="SupplementaryRiskInformationType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="category" type="CategoryContentType2" />
      <xs:element name="type" type="TypeContentType5" />
      <xs:element name="referenceIdentifier" type="ReferenceIdentifierContentType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType03">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisRequest  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisRequestType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="timerForCompletion" minOccurs="0" type="TimerForCompletionType" />
      <xs:element name="involvedMemberState" minOccurs="0" type="InvolvedMemberStateType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  PreviousRiskAnalysis  ===============-->
  <!--=======================================================-->
  <xs:complexType name="PreviousRiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" minOccurs="0" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="riskAssementType" type="RiskAssementTypeContentType" />
      <xs:element name="category" type="CategoryContentType1" />
      <xs:element name="involvedMemberState" minOccurs="0" type="InvolvedMemberStateType" />
      <xs:element name="responsibleMemberState" minOccurs="0" type="ResponsibleMemberStateType" />
      <xs:element name="riskAnalysisResult" maxOccurs="99" type="RiskAnalysisResultType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType04">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" type="CategoryContentType1" />
      <xs:element name="riskAnalysisRequest" type="RiskAnalysisRequestType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  OtherMemberState  =================-->
  <!--=======================================================-->
  <xs:complexType name="OtherMemberStateType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="country" type="CountryContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  ValidityStartDateAndTime  =============-->
  <!--=======================================================-->
  <xs:complexType name="ValidityStartDateAndTimeType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ValidityEndDateAndTime  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ValidityEndDateAndTimeType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======  CountriesOfRoutingOfMeansOfTransport  =======-->
  <!--=======================================================-->
  <xs:complexType name="CountriesOfRoutingOfMeansOfTransportType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" type="SequenceNumberContentType2" />
      <xs:element name="country" type="CountryContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Packaging  =====================-->
  <!--=======================================================-->
  <xs:complexType name="PackagingType05">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="shippingMarks" type="ShippingMarksContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  Communication  ===================-->
  <!--=======================================================-->
  <xs:complexType name="CommunicationType03">
    <xs:annotation>
      <xs:documentation>Used by 3/54 messages: IE4Q07, IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identifier" type="IdentifierContentType1" />
      <xs:element name="type" type="TypeContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--============  ActiveBorderTransportMeans  ============-->
  <!--=======================================================-->
  <xs:complexType name="ActiveBorderTransportMeansType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType2">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3012</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="typeOfIdentification" minOccurs="0" type="TypeOfIdentificationContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3012</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="nationality" minOccurs="0" type="NationalityContentType" />
      <xs:element name="ModeOfTransport" type="ModeOfTransportContentType" />
      <xs:element name="conveyanceReferenceNumber" minOccurs="0" type="ConveyanceReferenceNumberContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3019</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="countriesOfRoutingOfMeansOfTransport" minOccurs="0" maxOccurs="99" type="CountriesOfRoutingOfMeansOfTransportType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  PartyOfInterest  ==================-->
  <!--=======================================================-->
  <xs:complexType name="PartyOfInterestType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
      <xs:element name="role" minOccurs="0" type="RoleContentType3" />
      <xs:element name="address" minOccurs="0" type="AddressType02" />
      <xs:element name="communication" minOccurs="0" maxOccurs="9" type="CommunicationType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  RiskParameters  ==================-->
  <!--=======================================================-->
  <xs:complexType name="RiskParametersType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q07</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="validityStartDateAndTime" type="ValidityStartDateAndTimeType" />
      <xs:element name="validityEndDateAndTime" type="ValidityEndDateAndTimeType" />
      <xs:element name="countriesOfRoutingOfConsignment" minOccurs="0" maxOccurs="99" type="CountriesOfRoutingOfConsignmentType" />
      <xs:element name="activeBorderTransportMeans" minOccurs="0" type="ActiveBorderTransportMeansType02" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType05" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="99" type="TransportEquipmentType" />
      <xs:element name="partyOfInterest" minOccurs="0" maxOccurs="9" type="PartyOfInterestType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType13">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q08</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType11" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  RelatedENS  ====================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedENSType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q08</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MRN" type="MRNContentType" />
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType13" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  ENSQueryParameters  ================-->
  <!--=======================================================-->
  <xs:complexType name="ENSQueryParametersType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4Q10</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="parameter" type="ParameterContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  AcceptanceDate  ==================-->
  <!--=======================================================-->
  <xs:complexType name="AcceptanceDateType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R01</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  BinaryAttachment  =================-->
  <!--=======================================================-->
  <xs:complexType name="BinaryAttachmentType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="filename" type="FilenameContentType" />
      <xs:element name="MIME" type="MIMEContentType" />
      <xs:element name="includedBinaryObject" type="xs:base64Binary" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  AdditionalInformationResponse  ===========-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalInformationResponseType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referralRequestReference" type="ReferralRequestReferenceContentType1" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="binaryAttachment" minOccurs="0" maxOccurs="9" type="BinaryAttachmentType02" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType05">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referralRequestReference" type="ReferralRequestReferenceContentType2" />
      <xs:element name="result" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="authorizedPerson" type="AuthorizedPersonType" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType02" />
      <xs:element name="facilityPlace" minOccurs="0" type="FacilityPlaceType02" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  SupplementaryRiskInformation  ===========-->
  <!--=======================================================-->
  <xs:complexType name="SupplementaryRiskInformationType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="category" minOccurs="0" type="CategoryContentType2" />
      <xs:element name="type" minOccurs="0" type="TypeContentType5" />
      <xs:element name="referenceIdentifier" minOccurs="0" type="ReferenceIdentifierContentType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ScreeningMethod  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ScreeningMethodType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="method" minOccurs="0" type="MethodContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  AuthorizedPerson  =================-->
  <!--=======================================================-->
  <xs:complexType name="AuthorizedPersonType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" minOccurs="0" type="NameContentType" />
      <xs:element name="identificationNumber" minOccurs="0" type="IdentificationNumberContentType1" />
      <xs:element name="typeOfPerson" minOccurs="0" type="TypeOfPersonContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  BinaryFile  ====================-->
  <!--=======================================================-->
  <xs:complexType name="BinaryFileType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="filename" minOccurs="0" type="FilenameContentType" />
      <xs:element name="MIME" minOccurs="0" type="MIMEContentType" />
      <xs:element name="includedBinaryObject" type="xs:base64Binary" minOccurs="0" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType1" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--======================  Address  ======================-->
  <!--=======================================================-->
  <xs:complexType name="AddressType04">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="city" minOccurs="0" type="CityContentType" />
      <xs:element name="country" minOccurs="0" type="CountryContentType2" />
      <xs:element name="subDivision" minOccurs="0" type="SubDivisionContentType" />
      <xs:element name="streetNameLine1" minOccurs="0" type="StreetNameLine1ContentType" />
      <xs:element name="postCode" minOccurs="0" type="PostCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3034</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="streetNameLine2" minOccurs="0" type="StreetNameLine2ContentType" />
      <xs:element name="number" minOccurs="0" type="NumberContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TimerForCompletion  ================-->
  <!--=======================================================-->
  <xs:complexType name="TimerForCompletionType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="dateAndTime" minOccurs="0" type="DateAndTimeType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType4" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisResult  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisResultType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisType" minOccurs="0" type="RiskAnalysisTypeContentType" />
      <xs:element name="riskAreaCode" minOccurs="0" type="RiskAreaCodeContentType" />
      <xs:element name="riskLevel" minOccurs="0" type="RiskLevelContentType" />
      <xs:element name="riskCriteriaIdentifier" minOccurs="0" type="RiskCriteriaIdentifierContentType" />
      <xs:element name="resultCode" minOccurs="0" type="ResultCodeContentType" />
      <xs:element name="resultText" minOccurs="0" type="ResultTextContentType" />
      <xs:element name="dateAndTimeOfCompletion" minOccurs="0" type="DateAndTimeOfCompletionType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  Packaging  =====================-->
  <!--=======================================================-->
  <xs:complexType name="PackagingType06">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="shippingMarks" minOccurs="0" type="ShippingMarksContentType" />
      <xs:element name="typeOfPackages" minOccurs="0" type="TypeOfPackagesContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  TransportEquipment  ================-->
  <!--=======================================================-->
  <xs:complexType name="TransportEquipmentType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="containerIdentificationNumber" minOccurs="0" type="ContainerIdentificationNumberContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  TransportDocument  =================-->
  <!--=======================================================-->
  <xs:complexType name="TransportDocumentType04">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="documentNumber" minOccurs="0" type="DocumentNumberContentType" />
      <xs:element name="type" minOccurs="0" type="TypeContentType3" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ReferralRequestDetails  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ReferralRequestDetailsType04">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceRequestReference" minOccurs="0" type="ReferenceRequestReferenceContentType" />
      <xs:element name="recommendedHRCMScreeningMethod" minOccurs="0" maxOccurs="9" type="RecommendedHRCMScreeningMethodContentType" />
      <xs:element name="requestType" minOccurs="0" type="RequestTypeContentType" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType02" />
      <xs:element name="supportingDocuments" minOccurs="0" maxOccurs="99" type="SupportingDocumentsType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="pointer" minOccurs="0" maxOccurs="99" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=======================  Time  =======================-->
  <!--=======================================================-->
  <xs:complexType name="TimeType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  CustomsOfficeOfFirstEntry  =============-->
  <!--=======================================================-->
  <xs:complexType name="CustomsOfficeOfFirstEntryType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" minOccurs="0" type="ReferenceNumberContentType2" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  ENSEntity  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ENSEntityType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="type" minOccurs="0" type="TypeContentType6" />
      <xs:element name="identification" minOccurs="0" type="IdentificationContentType" />
      <xs:element name="state" minOccurs="0" type="StateContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  ControlResultDate  =================-->
  <!--=======================================================-->
  <xs:complexType name="ControlResultDateType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4R05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlTrigger  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlTriggerType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4R05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="controlTrigger" minOccurs="0" type="ControlTriggerContentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ControlEndDateAndTime  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ControlEndDateAndTimeType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4R05, IE4S03</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="DateTime" type="DateTimeContentType" />
    </xs:choice>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  FacilityPlace  ===================-->
  <!--=======================================================-->
  <xs:complexType name="FacilityPlaceType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="address" minOccurs="0" type="AddressType04" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisRequest  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisRequestType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="timerForCompletion" minOccurs="0" type="TimerForCompletionType02" />
      <xs:element name="involvedMemberState" minOccurs="0" maxOccurs="99" type="InvolvedMemberStateType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  GoodsItem  =====================-->
  <!--=======================================================-->
  <xs:complexType name="GoodsItemType11">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType06" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType03" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsItemType12">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="goodsItemNumber" minOccurs="0" type="GoodsItemNumberContentType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType06" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  DoNotLoadDetails  =================-->
  <!--=======================================================-->
  <xs:complexType name="DoNotLoadDetailsType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType04" />
      <xs:element name="transportDocument" minOccurs="0" maxOccurs="99999" type="TransportDocumentType04" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===========  AdditionalInformationResponse  ===========-->
  <!--=======================================================-->
  <xs:complexType name="AdditionalInformationResponseType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdentifierID" minOccurs="0" type="IdentifierIDContentType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType03" />
      <xs:element name="transportDocument" minOccurs="0" type="TransportDocumentType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  CompetentOffice  ==================-->
  <!--=======================================================-->
  <xs:complexType name="CompetentOfficeType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="customsOfficeOfFirstEntry" minOccurs="0" type="CustomsOfficeOfFirstEntryType03" />
      <xs:element name="customsOfficeOfPresentation" minOccurs="0" type="CustomsOfficeOfPresentationType" />
      <xs:element name="customsOfficeOfControl" minOccurs="0" type="CustomsOfficeOfControlType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlDecision  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlDecisionType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="reasonText" minOccurs="0" type="ReasonTextContentType" />
      <xs:element name="reasonCode" minOccurs="0" type="ReasonCodeContentType" />
      <xs:element name="controlDecision" minOccurs="0" type="ControlDecisionContentType" />
      <xs:element name="controlTrigger" minOccurs="0" type="ControlTriggerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  ControlResult  ===================-->
  <!--=======================================================-->
  <xs:complexType name="ControlResultType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="type" minOccurs="0" type="TypeContentType1" />
      <xs:element name="controlEndDateAndTime" minOccurs="0" type="ControlEndDateAndTimeType" />
      <xs:element name="code" minOccurs="0" type="CodeContentType2" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType2" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  HrcmScreeningResults  ===============-->
  <!--=======================================================-->
  <xs:complexType name="HrcmScreeningResultsType06">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referralRequestReference" minOccurs="0" type="ReferralRequestReferenceContentType2" />
      <xs:element name="result" minOccurs="0" type="ResultContentType" />
      <xs:element name="screeningMethod" minOccurs="2" maxOccurs="9" type="ScreeningMethodType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="authorizedPerson" minOccurs="0" type="AuthorizedPersonType02" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType03" />
      <xs:element name="facilityPlace" minOccurs="0" type="FacilityPlaceType03" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType05">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" minOccurs="0" type="CategoryContentType1" />
      <xs:element name="responsibleMemberState" minOccurs="0" type="ResponsibleMemberStateType" />
      <xs:element name="riskAnalysisRequest" minOccurs="0" type="RiskAnalysisRequestType03" />
      <xs:element name="riskAnalysisResult" minOccurs="0" maxOccurs="99" type="RiskAnalysisResultType03" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RiskAnalysisType06">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAssessmentType" type="RiskAssessmentTypeContentType" />
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" minOccurs="0" type="CategoryContentType1" />
      <xs:element name="involvedMemberState" minOccurs="0" type="InvolvedMemberStateType" />
      <xs:element name="responsibleMemberState" minOccurs="0" type="ResponsibleMemberStateType" />
      <xs:element name="riskAnalysisRequest" minOccurs="0" type="RiskAnalysisRequestType03" />
      <xs:element name="riskAnalysisResult" minOccurs="0" maxOccurs="99" type="RiskAnalysisResultType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType13">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" minOccurs="0" type="SequenceNumberContentType1" />
      <xs:element name="receptacle" minOccurs="0" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType12" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType02" />
      <xs:element name="transportDocumentHouseLevel" minOccurs="0" type="TransportDocumentHouseLevelType03" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=====================  ENSEvent  =====================-->
  <!--=======================================================-->
  <xs:complexType name="ENSEventType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="type" minOccurs="0" type="TypeContentType5" />
      <xs:element name="time" minOccurs="0" type="TimeType" />
      <xs:element name="competentOffice" minOccurs="0" type="CompetentOfficeType" />
      <xs:element name="ENSEntity" minOccurs="0" maxOccurs="99999" type="ENSEntityType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType14">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType11" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType13" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType06" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  ENSHistory  ====================-->
  <!--=======================================================-->
  <xs:complexType name="ENSHistoryType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ENSEvent" minOccurs="0" maxOccurs="99" type="ENSEventType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlSubject  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlSubjectType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType14" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ControlRecommendations  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ControlRecommendationsType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="placeOfControl" minOccurs="0" type="PlaceOfControlContentType" />
      <xs:element name="memberStateOfControl" minOccurs="0" type="MemberStateOfControlType" />
      <xs:element name="controlSubject" minOccurs="0" type="ControlSubjectType03" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlResults  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlResultsType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="controlResultDate" minOccurs="0" type="ControlResultDateType" />
      <xs:element name="customsOfficeOfControl" minOccurs="0" type="CustomsOfficeOfControlType" />
      <xs:element name="controlSubject" minOccurs="0" type="ControlSubjectType03" />
      <xs:element name="controlDecision" minOccurs="0" type="ControlDecisionType" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType02" />
      <xs:element name="controlResult" minOccurs="0" type="ControlResultType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=========  PreviousAirPreloadingRiskAnalysis  =========-->
  <!--=======================================================-->
  <xs:complexType name="PreviousAirPreloadingRiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysis" minOccurs="0" type="RiskAnalysisType05" />
      <xs:element name="controlRecommendations" minOccurs="0" maxOccurs="99" type="ControlRecommendationsType02" />
      <xs:element name="doNotLoadDetails" minOccurs="0" type="DoNotLoadDetailsType02" />
      <xs:element name="referralRequestDetails" minOccurs="0" maxOccurs="9" type="ReferralRequestDetailsType04" />
      <xs:element name="additionalInformationResponse" minOccurs="0" maxOccurs="99" type="AdditionalInformationResponseType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  AirPreloadingRiskAnalysis  =============-->
  <!--=======================================================-->
  <xs:complexType name="AirPreloadingRiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysis" minOccurs="0" maxOccurs="99" type="RiskAnalysisType06" />
      <xs:element name="controlRecommendations" minOccurs="0" maxOccurs="99" type="ControlRecommendationsType02" />
      <xs:element name="doNotLoadDetails" minOccurs="0" type="DoNotLoadDetailsType02" />
      <xs:element name="referralRequestDetails" minOccurs="0" maxOccurs="9" type="ReferralRequestDetailsType04" />
      <xs:element name="additionalInformationResponse" minOccurs="0" maxOccurs="99" type="AdditionalInformationResponseType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=============  PreviousFullRiskAnalysis  =============-->
  <!--=======================================================-->
  <xs:complexType name="PreviousFullRiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysis" minOccurs="0" type="RiskAnalysisType05" />
      <xs:element name="controlRecommendations" minOccurs="0" maxOccurs="99" type="ControlRecommendationsType02" />
      <xs:element name="doNotLoadDetails" minOccurs="0" type="DoNotLoadDetailsType02" />
      <xs:element name="referralRequestDetails" minOccurs="0" maxOccurs="9" type="ReferralRequestDetailsType04" />
      <xs:element name="additionalInformationResponse" minOccurs="0" maxOccurs="99" type="AdditionalInformationResponseType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  FullRiskAnalysis  =================-->
  <!--=======================================================-->
  <xs:complexType name="FullRiskAnalysisType">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysis" minOccurs="0" maxOccurs="99" type="RiskAnalysisType06" />
      <xs:element name="controlRecommendations" minOccurs="0" maxOccurs="99" type="ControlRecommendationsType02" />
      <xs:element name="doNotLoadDetails" minOccurs="0" type="DoNotLoadDetailsType02" />
      <xs:element name="referralRequestDetails" minOccurs="0" maxOccurs="9" type="ReferralRequestDetailsType04" />
      <xs:element name="additionalInformationResponse" minOccurs="0" maxOccurs="99" type="AdditionalInformationResponseType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RelatedPLACI  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedPLACIType03">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="supplementaryRiskInformation" minOccurs="0" maxOccurs="99" type="SupplementaryRiskInformationType02" />
      <xs:element name="hrcmScreeningResults" minOccurs="0" maxOccurs="99" type="HrcmScreeningResultsType06" />
      <xs:element name="previousAirPreloadingRiskAnalysis" minOccurs="0" maxOccurs="99" type="PreviousAirPreloadingRiskAnalysisType" />
      <xs:element name="airPreloadingRiskAnalysis" minOccurs="0" type="AirPreloadingRiskAnalysisType" />
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType12" />
      <xs:element name="partialENSFilingHeader" minOccurs="0" maxOccurs="99999" type="PartialENSFilingHeaderType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  RelatedENS  ====================-->
  <!--=======================================================-->
  <xs:complexType name="RelatedENSType04">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4R05</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DocumentIssueDate" minOccurs="0" type="DocumentIssueDateType02" />
      <xs:element name="SpecificCircumstanceIndicator" minOccurs="0" type="SpecificCircumstanceIndicatorContentType" />
      <xs:element name="MRN" minOccurs="0" type="MRNContentType" />
      <xs:element name="reEntryIndicator" minOccurs="0" type="ReEntryIndicatorContentType" />
      <xs:element name="supplementaryRiskInformation" minOccurs="0" maxOccurs="99" type="SupplementaryRiskInformationType02" />
      <xs:element name="controlResults" minOccurs="0" maxOccurs="99" type="ControlResultsType" />
      <xs:element name="previousFullRiskAnalysis" minOccurs="0" maxOccurs="99" type="PreviousFullRiskAnalysisType" />
      <xs:element name="fullRiskAnalysis" minOccurs="0" type="FullRiskAnalysisType" />
      <xs:element name="splitConsignment" minOccurs="0" type="SplitConsignmentType" />
      <xs:element name="representative" minOccurs="0" type="RepresentativeType04" />
      <xs:element name="activeBorderTransportMeans" minOccurs="0" type="ActiveBorderTransportMeansType" />
      <xs:element name="consignmentMasterLevel" minOccurs="0" type="ConsignmentMasterLevelType10" />
      <xs:element name="declarant" minOccurs="0" type="DeclarantType04" />
      <xs:element name="customsOfficeOfFirstEntry" minOccurs="0" type="CustomsOfficeOfFirstEntryType02" />
      <xs:element name="partialENSFilingHeader" minOccurs="0" maxOccurs="99999" type="PartialENSFilingHeaderType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--====================  RiskAnalyst  ====================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalystType">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="name" type="NameContentType" />
      <xs:element name="communication" maxOccurs="9" type="CommunicationType03" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--================  RiskAnalysisResult  ================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisResultType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisType" type="RiskAnalysisTypeContentType" />
      <xs:element name="riskAreaCode" minOccurs="0" type="RiskAreaCodeContentType" />
      <xs:element name="riskLevel" minOccurs="0" type="RiskLevelContentType" />
      <xs:element name="riskCriteriaIdentifier" minOccurs="0" type="RiskCriteriaIdentifierContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3009</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="resultCode" minOccurs="0" type="ResultCodeContentType">
        <xs:annotation>
          <xs:documentation>
            <Conditions>C3010</Conditions>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="resultText" minOccurs="0" type="ResultTextContentType" />
      <xs:element name="dateAndTimeOfCompletion" minOccurs="0" type="DateAndTimeOfCompletionType" />
      <xs:element name="pointer" minOccurs="0" type="PointerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===============  ConsignmentHouseLevel  ===============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentHouseLevelType14">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="sequenceNumber" type="SequenceNumberContentType1" />
      <xs:element name="receptacle" minOccurs="0" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType06" />
      <xs:element name="passiveBorderTransportMeans" minOccurs="0" maxOccurs="99" type="PassiveBorderTransportMeansType" />
      <xs:element name="transportDocumentHouseLevel" type="TransportDocumentHouseLevelType" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--=================  DoNotLoadDetails  =================-->
  <!--=======================================================-->
  <xs:complexType name="DoNotLoadDetailsType03">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportDocument" minOccurs="0" maxOccurs="99999" type="TransportDocumentType03" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  RiskAnalysis  ===================-->
  <!--=======================================================-->
  <xs:complexType name="RiskAnalysisType07">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="riskAnalysisRequestReference" type="RiskAnalysisRequestReferenceContentType" />
      <xs:element name="category" type="CategoryContentType1" />
      <xs:element name="riskAnalysisResult" maxOccurs="99" type="RiskAnalysisResultType04" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ConsignmentMasterLevel  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ConsignmentMasterLevelType15">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="receptacle" minOccurs="0" maxOccurs="999" type="ReceptacleType" />
      <xs:element name="goodsItem" minOccurs="0" maxOccurs="9999" type="GoodsItemType05" />
      <xs:element name="consignmentHouseLevel" minOccurs="0" maxOccurs="99999" type="ConsignmentHouseLevelType14" />
      <xs:element name="packaging" minOccurs="0" maxOccurs="99" type="PackagingType02" />
      <xs:element name="transportDocumentMasterLevel" minOccurs="0" type="TransportDocumentMasterLevelType02" />
      <xs:element name="transportEquipment" minOccurs="0" maxOccurs="9999" type="TransportEquipmentType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlSubject  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlSubjectType04">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" type="ConsignmentMasterLevelType15">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3030</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==============  ControlRecommendations  ==============-->
  <!--=======================================================-->
  <xs:complexType name="ControlRecommendationsType03">
    <xs:annotation>
      <xs:documentation>Used by 2/54 messages: IE4S01, IE4S02</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="placeOfControl" type="PlaceOfControlContentType" />
      <xs:element name="controlSubject" type="ControlSubjectType04" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType03">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlSubject  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlSubjectType05">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="consignmentMasterLevel" type="ConsignmentMasterLevelType08" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--==================  ControlDecision  ==================-->
  <!--=======================================================-->
  <xs:complexType name="ControlDecisionType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="reasonText" minOccurs="0" type="ReasonTextContentType" />
      <xs:element name="reasonCode" minOccurs="0" type="ReasonCodeContentType" />
      <xs:element name="controlDecision" type="ControlDecisionContentType" />
      <xs:element name="controlTrigger" minOccurs="0" type="ControlTriggerType" />
    </xs:sequence>
  </xs:complexType>
  <!--=======================================================-->
  <!--===================  ControlResult  ===================-->
  <!--=======================================================-->
  <xs:complexType name="ControlResultType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="type" type="TypeContentType1" />
      <xs:element name="controlEndDateAndTime" type="ControlEndDateAndTimeType" />
      <xs:element name="code" type="CodeContentType2" />
      <xs:element name="description" minOccurs="0" type="DescriptionContentType2" />
      <xs:element name="binaryFile" minOccurs="0" maxOccurs="9" type="BinaryFileType02" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ControlResultsType02">
    <xs:annotation>
      <xs:documentation>Used by 1/54 messages: IE4S03</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="controlSubject" minOccurs="0" type="ControlSubjectType05" />
      <xs:element name="controlDecision" type="ControlDecisionType02" />
      <xs:element name="additionalInformation" minOccurs="0" maxOccurs="99" type="AdditionalInformationType03">
        <xs:annotation>
          <xs:documentation>
            <Rules>R3001</Rules>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="controlResult" minOccurs="0" type="ControlResultType02" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>
