<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== TA014:E_ATA_DEC_CAN  -->
  <!--===== Αποστολή Αίτησης Ακύρωσης  -->
  <!--===== NCTS Domain Definition  -->
  <!--===== DDNTA v14.00  -->
  <!--===== Included Features: [12, 17, 20, 21, 23, 24, 27, 29]  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="simple_types_ncts.xsd" />
  <xs:include schemaLocation="simple_types.xsd" />
  <xs:include schemaLocation="complex_types.xsd" />
  <xs:include schemaLocation="tcl_ncts.xsd" />
  <xs:include schemaLocation="tcl.xsd" />
  <xs:include schemaLocation="doc.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="TA014A" type="TA014A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="TA014A">
    <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="TRAPRIPC1" type="TRAPRIPC1">
        <xs:annotation>
          <xs:documentation>
            <description value="(PRINCIPAL) TRADER" />
            <rule name="E719" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSOFFDEPEPT" type="CUSOFFDEPEPT">
        <xs:annotation>
          <xs:documentation>
            <description value="(DEPARTURE) CUSTOMS OFFICE" />
            <rule name="E719" />
          </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="Numeric_6">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimOfPreMES10" type="Numeric_4">
        <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" />
            <rule name="TR9085" />
            <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="MesSeqNumMES22" type="Numeric_Max2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Message sequence number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FirAndLasTraMES23" type="FirstLast" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="First and last transfer" />
            <codeList name="FirstLast" />
          </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="AtaCarCounCodHEA1000" type="CountryCodeType">
        <xs:annotation>
          <xs:documentation>
            <description value="ATA Carnet Country Code" />
            <rule name="E719" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AtaCarNumbHEA1001" type="Alphanumeric_Max18">
        <xs:annotation>
          <xs:documentation>
            <description value="ATA Carnet Number" />
            <rule name="E719" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatOfCanReqHEA147" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of cancellation request" />
            <rule name="E721" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CanReaHEA250" type="Alphanumeric_Max350">
        <xs:annotation>
          <xs:documentation>
            <description value="Cancellation reason" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CanReaHEA250LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Cancellation reason LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefATAYeaHEA1012" type="Numeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference ATA Year" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefATACouCodHEA1011" type="Alpha_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference ATA Country Code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefATATypHEA1014" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference ATA Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefATACusHEA1013" type="Alphanumeric_4">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference ATA Customs ID" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RefATANumHEA1015" type="Alphanumeric_Max8">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference ATA Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (PRINCIPAL) TRADER =====-->
  <xs:complexType name="TRAPRIPC1">
    <xs:annotation>
      <xs:documentation>
        <description value="(PRINCIPAL) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamPC17" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumPC122" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodPC123" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitPC124" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouPC125" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <condition name="EC160" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NADLNGPC" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="NAD LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TINPC159" type="TINType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TinTypPC1009" type="Numeric_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN type" />
            <condition name="E705" />
            <codeList name="TinType" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (DEPARTURE) CUSTOMS OFFICE =====-->
  <xs:complexType name="CUSOFFDEPEPT">
    <xs:annotation>
      <xs:documentation>
        <description value="(DEPARTURE) CUSTOMS OFFICE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumEPT1" type="CORefNumType">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

