<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== TA013:E_ATA_DEC_AMD  -->
  <!--===== Αποστολή Διορθωτικής Διασάφησης ATA  -->
  <!--===== 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="TA013A" type="TA013A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="TA013A">
    <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" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(DEPARTURE) CUSTOMS OFFICE" />
            <rule name="E719" />
            <rule name="E720" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSOFFDESEST" type="CUSOFFDESEST" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(DESTINATION) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GOOITEGDS" type="GOOITEGDS">
        <xs:annotation>
          <xs:documentation>
            <description value="GOODS ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MESREGCUOF" type="MESREGCUOF">
        <xs:annotation>
          <xs:documentation>
            <description value="(REGISTRATION) 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="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="IssDatHEA186" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Issuing date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <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="CusProHEA1002" type="Numeric_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Custom Procedure" />
            <rule name="E091" />
            <codeList name="AtaCustomsProcedure" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IssAutHEA1003" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Issuing Authority" />
          </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:element name="DeaHEA1004" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Deadline" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TarDatHEA1005" type="DateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Target date" />
            <condition name="E096" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OthDetHEA1007" type="Alphanumeric_Max240" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Other details" />
          </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" />
            <condition name="E094" />
            <condition name="E095" />
          </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" />
            <rule name="E600" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (DESTINATION) CUSTOMS OFFICE =====-->
  <xs:complexType name="CUSOFFDESEST">
    <xs:annotation>
      <xs:documentation>
        <description value="(DESTINATION) CUSTOMS OFFICE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumEST1" type="CORefNumType">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
            <rule name="E103" />
            <rule name="E600" />
          </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="GooDesGDS23" type="Alphanumeric_Max280">
        <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" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaValGDS500" type="Decimal_15_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Statistical value" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CurGDS1011" type="Alphanumeric_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Currency" />
            <codeList name="CurrencyCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecLinGIMES" type="Numeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Declared Lines" />
            <condition name="E097" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

