<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== IA51:I_IMP_NO_REL  -->
  <!--===== Import Not Release  -->
  <!--===== ICS Domain Definition  -->
  <!--===== DDNIA v13.00  -->
  <!--===== Included Features: [10, 12, 18, 20, 26, 27, 28, 29]  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="simple_types.xsd" />
  <xs:include schemaLocation="complex_types.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <xs:include schemaLocation="tcl.xsd" />
  <xs:include schemaLocation="doc.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="IA51A" type="IA51A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="IA51A">
    <xs:sequence>
      <xs:group ref="MESSAGE" />
      <xs:element name="HEAHEA" type="HEAHEA">
        <xs:annotation>
          <xs:documentation>
            <description value="HEADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRACONCO1" type="TRACONCO1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNOR) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRACONCE1" type="TRACONCE1">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNEE) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONRESERS" type="CONRESERS" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTROL RESULT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RESOFCON534" type="RESOFCON534">
        <xs:annotation>
          <xs:documentation>
            <description value="RESULTS OF CONTROL" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GOOITEGDS" type="GOOITEGDS" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="GOODS ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAREP" type="TRAREP" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(REPRESENTATIVE) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="STATREP385" type="STATREP385" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(STATUS) REPRESENTATIVE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ENTCUSOFF" type="ENTCUSOFF" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(ENTRY) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPCUSOFF" type="IMPCUSOFF">
        <xs:annotation>
          <xs:documentation>
            <description value="(IMPORT) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== MESSAGE Content =====-->
  <xs:group name="MESSAGE">
    <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:sequence>
  </xs:group>
  <!--===== HEADER =====-->
  <xs:complexType name="HEAHEA">
    <xs:annotation>
      <xs:documentation>
        <description value="HEADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumHEA4" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="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="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="AgrLocOfGooHEA39LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Agreed location of goods LNG" />
            <codeList name="LanguageCodes" type="business" />
          </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="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="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="NatOfMeaOfTraCroHEA87" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Nationality of means of transport crossing border" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccDatHEA158" type="DateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Acceptance date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotNumOfIteHEA305" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of items" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotNumOfPacHEA306" type="Numeric_Max7" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotGroMasHEA307" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total gross mass" />
          </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="DecPlaHEA394" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration place" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecPlaHEA394LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration place LNG" />
            <codeList name="LanguageCodes" type="business" />
          </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)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ManEntNumHEA1028" type="Alphanumeric_Max6" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Manual Entry Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ManEntYeaHEA1029" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Manual Entry Year" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NatOfMeaOfTraAtArrHEA54" type="Alpha_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Nationality of means of transport at arrival" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocRefNumHEA45" type="Alphanumeric_Max21">
        <xs:annotation>
          <xs:documentation>
            <description value="Document Reference Number" />
          </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="TaxPaymentMethodExpImp" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNOR) TRADER =====-->
  <xs:complexType name="TRACONCO1">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNOR) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCO17" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumCO122" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodCO123" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitCO124" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCO125" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NADLNGCO" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="NAD LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TINCO159" type="TINType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpeMenCO408" type="Alphanumeric_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNEE) TRADER =====-->
  <xs:complexType name="TRACONCE1">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNEE) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCE17" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumCE122" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodCE123" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitCE124" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCE125" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NADLNGCE" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="NAD LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TINCE159" type="TINType">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpeMenCE1003" type="Alphanumeric_5">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CONTROL RESULT =====-->
  <xs:complexType name="CONRESERS">
    <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:sequence>
  </xs:complexType>
  <!--===== RESULTS OF CONTROL =====-->
  <xs:complexType name="RESOFCON534">
    <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="DesTOC2LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Description LNG" />
            <codeList name="LanguageCodes" type="business" />
          </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:sequence>
  </xs:complexType>
  <!--===== GOODS ITEM =====-->
  <xs:complexType name="GOOITEGDS">
    <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" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GooDesGDS23" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods description" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GooDesGDS23LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods description LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GroMasGDS46" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Gross mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NetMasGDS48" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Net mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProReqGDI1" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Procedure requested" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreProGDI1" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous Procedure" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ComNatProGIM1" type="Alphanumeric_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Community / National 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="SupUniGDI1" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Supplementary units" />
          </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="StaValAmoGDI1" type="Decimal_11_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Statistical value amount" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NonCodProdDocGI" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Non Coded Produced Documents" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PREADMREFAR2" type="PREADMREFAR2" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PREVIOUS ADMINISTRATIVE REFERENCES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PRODOCDC2" type="PRODOCDC2" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PRODUCED DOCUMENTS/CERTIFICATES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="COMCODGODITM" type="COMCODGODITM" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(CODE) COMMODITY" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CALTAXGOD" type="CALTAXGOD" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="(TAXES) CALCULATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PACGS2" type="PACGS2" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PACKAGES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GRN" type="GRN" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="GRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TAXADDELE100" type="TAXADDELE100" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="(TAXES) ADDITIONAL ELEMENTS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="POSPAYGI400" type="POSPAYGI400" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(PAYMENT) POSTPONED" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REL800" type="REL800" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="RELIEFS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WARIDGI700" type="WARIDGI700" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(WAREHOUSE) IDENTIFICATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PREVIOUS ADMINISTRATIVE REFERENCES =====-->
  <xs:complexType name="PREADMREFAR2">
    <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="PreDocRefLNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document reference LNG" />
            <codeList name="LanguageCodes" type="business" />
          </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:element name="PreDocSupAR1007" type="Numeric_Max11" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document Supplementary units" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocSumDecPacAR1035" type="Alphanumeric_Max10" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document Summary Declaration Packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocBilOfLadTyp10" type="Alphanumeric_Max2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document Bill of Lading Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreDocBilOfLadNum11" type="Alphanumeric_Max70" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous document Bill of Lading Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PRODUCED DOCUMENTS/CERTIFICATES =====-->
  <xs:complexType name="PRODOCDC2">
    <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="DocRefDC23" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Document reference" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocRefDCLNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Document reference LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocInfDC1008" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Document Information" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocInfDC1008LNG" type="Alpha_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Document Information LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CODE) COMMODITY =====-->
  <xs:complexType name="COMCODGODITM">
    <xs:annotation>
      <xs:documentation>
        <description value="(CODE) COMMODITY" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ComNomCMD1" type="NumericMin4Max8Type" minOccurs="0">
        <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="CALTAXGOD">
    <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" />
          </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" />
          </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>
  <!--===== PACKAGES =====-->
  <xs:complexType name="PACGS2">
    <xs:annotation>
      <xs:documentation>
        <description value="PACKAGES" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MarNumOfPacGS21" type="Alphanumeric_Max42" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Marks &amp; numbers of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MarNumOfPacGS21LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Marks &amp; numbers of packages LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="KinOfPacGS23" type="Alphanumeric_Max3">
        <xs:annotation>
          <xs:documentation>
            <description value="Kind of packages" />
            <codeList name="KindOfPackages" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NumOfPacGS24" type="Numeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Number of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NumOfPieGS25" type="Numeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Number of pieces" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (PAYMENT) POSTPONED =====-->
  <xs:complexType name="POSPAYGI400">
    <xs:annotation>
      <xs:documentation>
        <description value="(PAYMENT) POSTPONED" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PosEndDatPOSPAYGI401" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postponed End Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosEndFlaPOSPAYGI402" type="Alphanumeric_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postponed End Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosPayCodPOSPAYGI404" type="Alphanumeric_Max3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postponed Payment Code" />
            <codeList name="ΚωδικοςΠληρωμης" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosSusDatPOSPAYGI405" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postponed Suspend Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== RELIEFS =====-->
  <xs:complexType name="REL800">
    <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" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (WAREHOUSE) IDENTIFICATION =====-->
  <xs:complexType name="WARIDGI700">
    <xs:annotation>
      <xs:documentation>
        <description value="(WAREHOUSE) IDENTIFICATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WartypWARIDGI10" type="Alpha_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Warehouse type" />
            <codeList name="WarehouseTypeWarehouseType" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AutCouWARIDGI20" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Authorizing country" />
            <codeList name="CountryOfOriginStatisticalValueCurrencyStatvalueCurrencyQmu" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WarIdeWARIDEGI19" type="Alphanumeric_Max19">
        <xs:annotation>
          <xs:documentation>
            <description value="Warehouse identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (REPRESENTATIVE) TRADER =====-->
  <xs:complexType name="TRAREP">
    <xs:annotation>
      <xs:documentation>
        <description value="(REPRESENTATIVE) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamTRE1" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumTRE1" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodTRE1" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitTRE1" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCodTRE1" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAREPLNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="NAD LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TINTRE1" type="TINType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpeMenTRE410" type="Alphanumeric_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

