<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== DA328:E_REP_REQ_ACC  -->
  <!--===== Αποδοχή Αίτησης Ανασυσκευασίας  -->
  <!--===== ICS Domain Definition  -->
  <!--===== DDNIA v7.10  -->
  <!--===== 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="DA328A" type="DA328A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="DA328A">
    <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="GOOITEGDS" type="GOOITEGDS" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="GOODS ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSOFF" type="CUSOFF">
        <xs:annotation>
          <xs:documentation>
            <description value="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="DocNumHEA5" type="MRNType">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConRefNumHEA" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Conveyance reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccDatHEA2073" type="Numeric_6">
        <xs:annotation>
          <xs:documentation>
            <description value="Accepting date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccTim2074" type="Numeric_4">
        <xs:annotation>
          <xs:documentation>
            <description value="Accepting time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepRegDatTimHEA2082" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Repacking registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepSubDatTimHEA2083" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Repacking Submitted Date and Time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepReaTypHEA210" type="Alphanumeric_Max3">
        <xs:annotation>
          <xs:documentation>
            <description value="Repacking Reason Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepReaDecHEA209" type="Alphanumeric_Max240" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Repacking Reason Description" />
          </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">
        <xs:annotation>
          <xs:documentation>
            <description value="Gross mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefDecIteNumGI16" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Referenced Declaration Item Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DesGIMES" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Descrpition" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ComGIMES" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Comments" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ComCodGIMES" type="Alphanumeric_Max8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Commodity code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PACGS2" type="PACGS2" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="PACKAGES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DECCONGIMES" type="DECCONGIMES" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="DECLARATION CONTAINERS" />
          </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="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:element name="MarNumOfPacGSL21" type="Alphanumeric_Max140" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Marks &amp; numbers of packages (long)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MarNumOfPacGSL21LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Marks &amp; numbers of packages (long) LNG" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

