<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" version="1.00">
  <!--=========================================-->
  <!--===== DD13:DD_COR_EZ  -->
  <!--===== Αίτημα Διόρθωσης Δελτίου Εισόδου ΕΖ  -->
  <!--===== ICS Domain Definition  -->
  <!--===== ICS_P1  Phase  -->
  <!--=========================================-->
  <!--===== 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="DD13A" type="DD13A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="DD13A">
    <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="FREZONKEEMES" type="FREZONKEEMES">
        <xs:annotation>
          <xs:documentation>
            <description value="FREE ZONE KEEPER" />
          </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:element name="DEPBUYEZMES" type="DEPBUYEZMES">
        <xs:annotation>
          <xs:documentation>
            <description value="DEPOSITOR (BUYER) EZ" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SELEZMES" type="SELEZMES">
        <xs:annotation>
          <xs:documentation>
            <description value="SELLER EZ" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRACOMEZMES" type="TRACOMEZMES">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSPORTATION COMPANY ΕΖ" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ADDDODEZ" type="ADDDODEZ" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="ADDITIONAL DOCUMENTATION EZ" />
          </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" />
            <rule name="TR9181" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:group>
  <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="GooDesGDS50" type="Alphanumeric_Max350">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods description" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HEAHEA">
    <xs:annotation>
      <xs:documentation>
        <description value="HEADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumEZHEA" type="Alphanumeric_Max50">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmdDatHEA599" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of amendment" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecDatTimHEA114" type="DateTimeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GooWarRegNumEZHEAMES" type="Alphanumeric_Max50">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods Registration Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FreZonOpeLicNumHEAMES" type="Alphanumeric_Max50">
        <xs:annotation>
          <xs:documentation>
            <description value="Free Zone Operation License Number" />
            <rule name="E733" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InvNumEZHEAMES" type="Alphanumeric_Max100">
        <xs:annotation>
          <xs:documentation>
            <description value="Invoice number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HandWrRegNuHEAMES" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="HandWritten Registration Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HandWrRegDaHEAMES" type="DateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="HandWritten Registration Date" />
            <condition name="C941" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="FREZONKEEMES">
    <xs:annotation>
      <xs:documentation>
        <description value="FREE ZONE KEEPER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamFREZONKEEMES" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumFREZONKEEMES" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodeFREZONKEEMES" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitFREZONKEEMES" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCodFREZONKEEMES" 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="MobNumFREZONKEEMES" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Mobile Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoNumFREZONKEEMES" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Phone number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmaAddFREZONKEEMES" type="emailAddressType">
        <xs:annotation>
          <xs:documentation>
            <description value="E-mail address" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConPerFREZONKEEMES" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Contact person" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdeTypFREZONKEEMES" type="Numeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity Type" />
            <codeList name="IdentityType" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdeNumFREZONKEEMES" type="Alphanumeric_Max21">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>