<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== DB113:SHP_ARR_NOT_AME  -->
  <!--===== Τροποποίηση Αναγγελίας Άφιξης – Κατάπλου Πλοίου  -->
  <!--===== 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="DB113A" type="DB113A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="DB113A">
    <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="CUSOFF" type="CUSOFF">
        <xs:annotation>
          <xs:documentation>
            <description value="CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRADET" type="TRADET">
        <xs:annotation>
          <xs:documentation>
            <description value="TRADER DETAILS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAVESDET" type="TRAVESDET">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSPORTATION VESSEL DETAILS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ARRDEPDET" type="ARRDEPDET">
        <xs:annotation>
          <xs:documentation>
            <description value="(DEPARTURE DETAILS) ARRIVAL" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ARRFUEDET" type="ARRFUEDET">
        <xs:annotation>
          <xs:documentation>
            <description value="ARRIVAL FUELS DETAILS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REFDEC" type="REFDEC">
        <xs:annotation>
          <xs:documentation>
            <description value="REFERENCED DECLARATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MESCARDET" type="MESCARDET" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CARGO DETAILS" />
          </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="DocRefComHEA120" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number Communicated" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAmeRegDat4047" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival amendment registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAmeSubDat4048" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival amendment Submitted Date and Time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAmeSubDatTim4049" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival amendment date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NotHEA" type="Alphanumeric_Max240" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="notes" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrivHEA1" type="Alphanumeric_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeparHEA2" type="Alphanumeric_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Departure" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== TRADER DETAILS =====-->
  <xs:complexType name="TRADET">
    <xs:annotation>
      <xs:documentation>
        <description value="TRADER DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamTEC1" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumTEC2" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosTEC1" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitTEC1" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCodTEC1" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <codeList name="Χώρα" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAEXICARLNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="NAD LNG" />
            <codeList name="Γλώσσα" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdTyTRADET9" type="Numeric_3">
        <xs:annotation>
          <xs:documentation>
            <description value="ID Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdTRADET8" type="Alphanumeric_Max21">
        <xs:annotation>
          <xs:documentation>
            <description value="ID" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== TRANSPORTATION VESSEL DETAILS =====-->
  <xs:complexType name="TRAVESDET">
    <xs:annotation>
      <xs:documentation>
        <description value="TRANSPORTATION VESSEL DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="VesRegTyp2115" type="Numeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Registration Type" />
            <rule name="ER902" />
            <codeList name="ΤύποςΝηολόγησης" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VesRegNum2116" type="Alphanumeric_Max30">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Registration Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VesNam2117" type="Alphanumeric_Max25">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VesCouReg2120" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Country of Registration" />
            <codeList name="ΧώραΝηολόγησης" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CalSigTRAVESDET" type="Alphanumeric_Max30" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Call Sign" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VoyRef2264" type="Alphanumeric_Max30" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Vessel Voyage Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (DEPARTURE DETAILS) ARRIVAL =====-->
  <xs:complexType name="ARRDEPDET">
    <xs:annotation>
      <xs:documentation>
        <description value="(DEPARTURE DETAILS) ARRIVAL" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PorArrCod2122" type="Alphanumeric_Max6">
        <xs:annotation>
          <xs:documentation>
            <description value="Port of Arrival code" />
            <codeList name="ΛιμάνιΑναχώρησης" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosDesCode2125" type="Alphanumeric_Max6">
        <xs:annotation>
          <xs:documentation>
            <description value="Port of Destination code" />
            <codeList name="ΛιμάνιΑναχώρησης" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExpArrDat2126" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Expected Arrival Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExpArrTim2127" type="Numeric_4">
        <xs:annotation>
          <xs:documentation>
            <description value="Expected Arrival Time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosportDEPARRDET" type="Alphanumeric_50" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Position of the ship in the port" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ARRIVAL FUELS DETAILS =====-->
  <xs:complexType name="ARRFUEDET">
    <xs:annotation>
      <xs:documentation>
        <description value="ARRIVAL FUELS DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="FueOilInt2145" type="Decimal_10_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Fuel Oil (Internal)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DieInt2146" type="Decimal_10_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Diesel (Internal)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FueOilExt2147" type="Decimal_10_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Fuel Oil (External)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DieExt2148" type="Decimal_10_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Diesel (External)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ARRFUEDETCONFUEDET1" type="ARRFUEDETCONFUEDET1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="CONSUMPTION FUELS DETAILS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== REFERENCED DECLARATION =====-->
  <xs:complexType name="REFDEC">
    <xs:annotation>
      <xs:documentation>
        <description value="REFERENCED DECLARATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeReNuREFDEC" type="Alphanumeric_22">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration Reference Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

