<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== IE51:I_IMP_E_INR  -->
  <!--===== E-Commerce Declaration Not Release  -->
  <!--===== ICS_P1 Phase Definition  -->
  <!--===== Message Specifications for IMPORT v1.00  -->
  <!--===== XSD version v1.22  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="doc.xsd" />
  <xs:include schemaLocation="complex_types_ics.xsd" />
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="IE51A" type="IE51A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="IE51A">
    <xs:sequence>
      <xs:element name="MesSenMES3" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message sender" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesRecMES6" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message recipient" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatOfPreMES9" type="DatePrepType">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimOfPreMES10" type="TimeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Time of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PriMES15" type="Alpha_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Priority" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TesIndMES18" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Test indicator" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesIdeMES19" type="Alphanumeric_Max14">
        <xs:annotation>
          <xs:documentation>
            <description value="Message identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesTypMES20" type="MessageTypes">
        <xs:annotation>
          <xs:documentation>
            <description value="Message type" />
            <codeList name="MessageTypes" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CorIdeMES25" type="Alphanumeric_Max14" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Correlation identifier" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HEAHEA" type="IE51_HEAHEAType">
        <xs:annotation>
          <xs:documentation>
            <description value="HEADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONEXPMES" type="IE51_CONEXPMESType">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNOR) EXPORTER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONIMPMES" type="IE51_CONIMPMESType">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNEE) IMPORTER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONRESERS" type="IE51_CONRESERSType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTROL RESULT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RESOFCON534" type="IE51_RESOFCON534Type" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="RESULTS OF CONTROL" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REPREP" type="IE51_REPREPType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="REPRESENTATIVE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDFISREF" type="IE51_ADDFISREFType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDITIONAL FISCAL REFERENCE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GOOITEGDS" type="IE51_GOOITEGDSType" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="GOODS ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRADAT" type="IE51_TRADATType">
        <xs:annotation>
          <xs:documentation>
            <description value="(DATA) TRANSACTION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPCUSOFF" type="IMPCUSOFFType">
        <xs:annotation>
          <xs:documentation>
            <description value="(IMPORT) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MESDECL" type="IE51_MESDECLType">
        <xs:annotation>
          <xs:documentation>
            <description value="DECLARANT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== MESSAGE Content =====-->
  <!--===== HEADER =====-->
  <xs:complexType name="IE51_HEAHEAType">
    <xs:annotation>
      <xs:documentation>
        <description value="HEADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DocNumHEA5" type="MRNType">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypOfDecHEA24" type="Alphanumeric_Max9">
        <xs:annotation>
          <xs:documentation>
            <description value="Type of declaration" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecFor" type="Numeric_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration Form" />
            <codeList name="ΤύποςΔιασάφησηςΒάσειΑξίαςΕμπορευμάτων" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouOfDesCodHEA30" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country of destination code" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AgrLocOfGooCodHEA38" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Agreed location of goods, code" />
            <codeList name="AgreedLocationOfGoodsCode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AgrLocOfGooHEA39" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Agreed location of goods" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouOfDisCodHEA55" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country of dispatch/export code" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InlTraModHEA75" type="Numeric_Max2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Inland transport mode" />
            <codeList name="TransportMode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TraModAtBorHEA76" type="Numeric_Max2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Transport mode at border" />
            <codeList name="TransportMode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GooIteNum" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods item number" />
            <rule name="R939" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdeOfMeaOfTraCroHEA85" type="Alphanumeric_Max27" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity of means of transport crossing border" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConIndHEA96" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Containerised indicator" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccDatHEA158" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Acceptance date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecDatHEA383" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypOfDecBx12HEA651" type="Alpha_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Type of declaration (Box 1.2)" />
            <codeList name="TypeOfDeclarationBox" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ManEntNumHEA1028" type="Alphanumeric_Max6" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Manual Entry Number" />
            <rule name="C936" />
            <condition name="C936" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ManEntYeaHEA1029" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Manual Entry Year" />
            <rule name="C936" />
            <condition name="C936" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LRNHEA01" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="LRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MetOfPayHEA590" type="Alpha_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Method of payment" />
            <codeList name="MethodOfPayment" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DefPay" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Deferred payment" />
            <codeList name="PostponedPaymentCode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefNumUCR" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number/UCR" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNOR) EXPORTER =====-->
  <xs:complexType name="IE51_CONEXPMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNOR) EXPORTER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCONEXPMES" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IDETYPCONEXP" type="Numeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity Type" />
            <codeList name="IdentityType" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdNumCONEXPMES2" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDCONEXPMES" type="ADDCONEXPMESType">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDRESS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNEE) IMPORTER =====-->
  <xs:complexType name="IE51_CONIMPMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNEE) IMPORTER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCONIMPMES" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IDETYPCONIMP" type="Numeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity Type" />
            <codeList name="IdentityType" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdNumCONIMPMES2" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDCONIMPMES" type="IE51_ADDCONIMPMESType">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDRESS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ADDRESS =====-->
  <xs:complexType name="IE51_ADDCONIMPMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="ADDRESS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ConCouADDIMPMES1" type="Alpha_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Consignee Country" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumADDIMPMES2" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PostcodADDIMPMES3" type="Alphanumeric_Max17">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitADDIMPMES4" type="CityType">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoNum" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Phone number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmaAdd" type="Alphanumeric_Max256" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="e-mail address" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CONTROL RESULT =====-->
  <xs:complexType name="IE51_CONRESERSType">
    <xs:annotation>
      <xs:documentation>
        <description value="CONTROL RESULT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ConDatERS14" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Control date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConResCodERS16" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Control result code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConByERS18" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Controlled by" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RemERS24" type="Alphanumeric_Max350">
        <xs:annotation>
          <xs:documentation>
            <description value="Remark" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatLimERS69" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Date limit" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== RESULTS OF CONTROL =====-->
  <xs:complexType name="IE51_RESOFCON534Type">
    <xs:annotation>
      <xs:documentation>
        <description value="RESULTS OF CONTROL" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DesTOC2" type="Alphanumeric_Max140" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Description" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConInd424" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Control indicator" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PoiToTheAttTOC5" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Pointer to the attribute" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CorValTOC4" type="Alphanumeric_Max27" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Corrected value" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== REPRESENTATIVE =====-->
  <xs:complexType name="IE51_REPREPType">
    <xs:annotation>
      <xs:documentation>
        <description value="REPRESENTATIVE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdNumREPMES" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REPSTACO" type="Numeric_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Representative Status Code" />
            <codeList name="RepresentativeStatusCode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONPERREPMES" type="IE51_CONPERREPMESType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTACT PERSON" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CONTACT PERSON =====-->
  <xs:complexType name="IE51_CONPERREPMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="CONTACT PERSON" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCONPERREPMES" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoNumCONPERREPMES" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Phone number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmaAddCONPERREPMES" type="Alphanumeric_Max256">
        <xs:annotation>
          <xs:documentation>
            <description value="e-mail address" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ADDITIONAL FISCAL REFERENCE =====-->
  <xs:complexType name="IE51_ADDFISREFType">
    <xs:annotation>
      <xs:documentation>
        <description value="ADDITIONAL FISCAL REFERENCE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Rol" type="Alphanumeric_Max3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Role" />
            <codeList name="ΚωδικόςΡόλουRoleCode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VatIdeNum" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="VAT identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== GOODS ITEM =====-->
  <xs:complexType name="IE51_GOOITEGDSType">
    <xs:annotation>
      <xs:documentation>
        <description value="GOODS ITEM" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IteNumGDS7" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Item number" />
            <rule name="R005" />
            <rule name="R007" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DesOfGooGOOITEMES" type="Alphanumeric_Max512">
        <xs:annotation>
          <xs:documentation>
            <description value="Description of goods" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefNumUcrGOOITEMES" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number/UCR" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GroMasGOOITEMES" type="Decimal_16_6">
        <xs:annotation>
          <xs:documentation>
            <description value="Gross mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NetMasGOOITEMES" type="Decimal_16_6" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Net mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProReqGDI1" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Procedure requested" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreProGDI1" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous Procedure" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouOfOriGDI1" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country of Origin" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Pre4046" type="Numeric_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Preference" />
            <codeList name="Κατασταση" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupUniGOOITEMES" type="Decimal_16_6" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Supplementary units" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IteAmoInvGOOITEMES" type="Decimal_16_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Item amount invoiced" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IntrValGOOITEMES" type="Decimal_16_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Intrinsic value" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CurGOOITEMES" type="Alphanumeric_Max3">
        <xs:annotation>
          <xs:documentation>
            <description value="Currency" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDPROGOOITEMES" type="IE51_ADDPROGOOITEMESType" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDITIONAL PROCEDURE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PREADMREFAR2" type="IE51_PREADMREFAR2Type" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PREVIOUS ADMINISTRATIVE REFERENCES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PRODOCDC2" type="IE51_PRODOCDC2Type" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PRODUCED DOCUMENTS/CERTIFICATES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SPEMENMT2" type="IE51_SPEMENMT2Type" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="SPECIAL MENTIONS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EXP" type="IE51_EXPType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNOR) EXPORTER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="COMCODGODITM" type="IE51_COMCODGODITMType">
        <xs:annotation>
          <xs:documentation>
            <description value="(CODE) COMMODITY" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CALTAXGOD" type="IE51_CALTAXGODType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="(TAXES) CALCULATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONNR2" type="IE51_CONNR2Type" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTAINERS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PACGS2" type="IE51_PACGS2Type" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PACKAGES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TAXADDELE100" type="TAXADDELE100Type" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="(TAXES) ADDITIONAL ELEMENTS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDREFGOOITEMES" type="ADDREFGOOITEMESType" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDITIONAL REFERENCE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRADOCGOOITEMES" type="IE51_TRADOCGOOITEMESType" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSPORT DOCUMENT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAANDINSCOSDES" type="TRAANDINSCOSDESType" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSPORT AND INSURANCE COSTS TO THE DESTINATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REL800" type="IE51_REL800Type" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="RELIEFS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ADDITIONAL PROCEDURE =====-->
  <xs:complexType name="IE51_ADDPROGOOITEMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="ADDITIONAL PROCEDURE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AddProADDPROGOOITEMES" type="Alphanumeric_3">
        <xs:annotation>
          <xs:documentation>
            <description value="Additional procedure" />
            <codeList name="ΠρόσθετοςΚωδικόςΚαθεστώτος" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PREVIOUS ADMINISTRATIVE REFERENCES =====-->
  <xs:complexType name="IE51_PREADMREFAR2Type">
    <xs:annotation>
      <xs:documentation>
        <description value="PREVIOUS ADMINISTRATIVE REFERENCES" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreDocTypAR21" type="Alphanumeric_Max6">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocRefAR26" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document reference" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocCatPREADMREF21" type="Alpha_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous Document Category" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocMrnAR1004" type="Alphanumeric_Max18" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document MRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocIteAR1005" type="Numeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document item number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocQuaAR1006" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document Quantity" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PRODUCED DOCUMENTS/CERTIFICATES =====-->
  <xs:complexType name="IE51_PRODOCDC2Type">
    <xs:annotation>
      <xs:documentation>
        <description value="PRODUCED DOCUMENTS/CERTIFICATES" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DocTypDC21" type="Alphanumeric_Max4">
        <xs:annotation>
          <xs:documentation>
            <description value="Document type" />
            <codeList name="DocumentTypeCommon" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocRef" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Document reference" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== SPECIAL MENTIONS =====-->
  <xs:complexType name="IE51_SPEMENMT2Type">
    <xs:annotation>
      <xs:documentation>
        <description value="SPECIAL MENTIONS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AddInfCodMT23" type="Alphanumeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Additional information coded" />
            <codeList name="AdditionalInformationIdCommon" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddInfTex" type="Alphanumeric_Max512" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Additional information text" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNOR) EXPORTER =====-->
  <xs:complexType name="IE51_EXPType">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNOR) EXPORTER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Nam" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IDETYPGOOCONEXP" type="Numeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity Type" />
            <codeList name="ΕCommerceIdentityTypes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdeNum" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Add" type="AddType">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDRESS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CODE) COMMODITY =====-->
  <xs:complexType name="IE51_COMCODGODITMType">
    <xs:annotation>
      <xs:documentation>
        <description value="(CODE) COMMODITY" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ComNomCOMCODGODITM" type="Alphanumeric_10">
        <xs:annotation>
          <xs:documentation>
            <description value="Combined Nomenclature" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARCodCMD1" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARFirAddCodCMD1" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC first additional code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARSecAddCodCMD1" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC second additional code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NAtAddCodCMD1" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="National additional code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (TAXES) CALCULATION =====-->
  <xs:complexType name="IE51_CALTAXGODType">
    <xs:annotation>
      <xs:documentation>
        <description value="(TAXES) CALCULATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TypOfTaxCTX1" type="Alphanumeric_3">
        <xs:annotation>
          <xs:documentation>
            <description value="Type of tax" />
            <codeList name="TypeOfTax" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TaxBasCTX1" type="Decimal_15_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Tax base" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RatOfTaxCTX1" type="Alphanumeric_Max15" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Rate of tax" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmoOfTaxTCL1" type="Decimal_15_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Amount of tax" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MetOfPayCTX1" type="Alpha_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Method of payment" />
            <codeList name="MethodOfPayment" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CalTypTAXCALGI" type="Alphanumeric_Max70" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Calculation Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InRelTAXCALGI" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="In Relief" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SusDueDatTAXCALGI" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Suspension Due Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CONTAINERS =====-->
  <xs:complexType name="IE51_CONNR2Type">
    <xs:annotation>
      <xs:documentation>
        <description value="CONTAINERS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ConNumNR21" type="Alphanumeric_Max17">
        <xs:annotation>
          <xs:documentation>
            <description value="Container number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PACKAGES =====-->
  <xs:complexType name="IE51_PACGS2Type">
    <xs:annotation>
      <xs:documentation>
        <description value="PACKAGES" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NumOfPac" type="Numeric_Max8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Number of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="KinOfPacGS23" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Kind of packages" />
            <codeList name="KindOfPackages" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MarNumOfPac" type="Alphanumeric_Max512" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Marks &amp; numbers of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== TRANSPORT DOCUMENT =====-->
  <xs:complexType name="IE51_TRADOCGOOITEMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="TRANSPORT DOCUMENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TypTRADOC" type="Alphanumeric_Max4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Type" />
            <codeList name="DocumentTypeCommon" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefNumTRADOC" type="Alphanumeric_Max70" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== RELIEFS =====-->
  <xs:complexType name="IE51_REL800Type">
    <xs:annotation>
      <xs:documentation>
        <description value="RELIEFS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelRelCod02" type="Alphanumeric_Max3">
        <xs:annotation>
          <xs:documentation>
            <description value="Relief Code" />
            <codeList name="ReliefCode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (DATA) TRANSACTION =====-->
  <xs:complexType name="IE51_TRADATType">
    <xs:annotation>
      <xs:documentation>
        <description value="(DATA) TRANSACTION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CurTRD1" type="Alphanumeric_Max3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Currency" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotAmoInvTRD1" type="Decimal_15_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total amount invoiced" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExcRatTRD1" type="Decimal_6_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Exchange rate" />
            <rule name="C556" />
            <condition name="C556" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== DECLARANT =====-->
  <xs:complexType name="IE51_MESDECLType">
    <xs:annotation>
      <xs:documentation>
        <description value="DECLARANT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Spm" type="Alphanumeric_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NamDECMES" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdNumDECMES" type="Alphanumeric_Max17">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDDECMES" type="ADDDECMESType">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDRESS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONPERDECMES" type="IE51_CONPERDECMESType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTACT PERSON" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CONTACT PERSON =====-->
  <xs:complexType name="IE51_CONPERDECMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="CONTACT PERSON" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCONPERDECMES" type="Alphanumeric_Max70">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoNumCONPERDECMES" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Phone number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmaAddCONPERDECMES" type="Alphanumeric_Max256">
        <xs:annotation>
          <xs:documentation>
            <description value="e-mail address" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

