<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== IE007:E_ARR_NOT  -->
  <!--===== ARRIVAL NOTIFICATION  -->
  <!--===== 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="CC007A" type="CC007A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="CC007A">
    <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="TRADESTRD" type="TRADESTRD">
        <xs:annotation>
          <xs:documentation>
            <description value="(DESTINATION) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSOFFPREOFFRES" type="CUSOFFPREOFFRES">
        <xs:annotation>
          <xs:documentation>
            <description value="(PRESENTATION OFFICE) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ENROUEVETEV" type="ENROUEVETEV" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>
            <description value="EN ROUTE EVENT" />
            <rule name="R240" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MESTIRINF" type="MESTIRINF" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIR INFO" />
            <condition name="E178" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== MESSAGE Content =====-->
  <xs:group name="MESSAGE">
    <xs:sequence>
      <xs:element name="SynIdeMES1" type="SyntaxIdentifier">
        <xs:annotation>
          <xs:documentation>
            <description value="Syntax identifier" />
            <codeList name="SyntaxIdentifier" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SynVerNumMES2" type="SyntaxVersionNumber">
        <xs:annotation>
          <xs:documentation>
            <description value="Syntax version number" />
            <codeList name="SyntaxVersionNumber" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesSenMES3" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message sender" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SenIdeCodQuaMES4" type="Alphanumeric_Max4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Sender identification code qualifier" />
          </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="RecIdeCodQuaMES7" type="Alphanumeric_Max4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Recipient identification code qualifier" />
          </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="IntConRefMES11" type="Alphanumeric_Max14">
        <xs:annotation>
          <xs:documentation>
            <description value="Interchange control reference" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecRefMES12" type="Alphanumeric_Max14" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Recipient's reference/password" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecRefQuaMES13" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Recipient's reference/password qualifier" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AppRefMES14" type="Alphanumeric_Max14" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Application reference" />
          </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="AckReqMES16" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Acknowledgement request" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ComAgrIdMES17" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Communications agreement id" />
          </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="ComAccRefMES21" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Common access reference" />
          </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="DocNumHEA5" type="MRNType">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CusSubPlaHEA66" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Customs sub place" />
            <rule name="R245" />
            <condition name="C155" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrNotPlaHEA60" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival notification place" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrNotPlaHEA60LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival notification place LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAgrLocCodHEA62" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival agreed Location code" />
            <rule name="R245" />
            <condition name="C155" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAgrLocOfGooHEA63" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival agreed Location of goods" />
            <rule name="R245" />
            <condition name="C155" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAgrLocOfGooHEA63LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival agreed Location of goods LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrAutLocOfGooHEA65" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival authorised location of goods" />
            <rule name="R245" />
            <rule name="E173" />
            <condition name="C155" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SimProFlaHEA132" type="Flag">
        <xs:annotation>
          <xs:documentation>
            <description value="Simplified procedure flag" />
            <rule name="R230" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrNotDatHEA141" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival notification date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DiaLanIndAtDesHEA255" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Dialog language indicator at destination" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (DESTINATION) TRADER =====-->
  <xs:complexType name="TRADESTRD">
    <xs:annotation>
      <xs:documentation>
        <description value="(DESTINATION) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamTRD7" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumTRD22" 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="PosCodTRD23" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitTRD24" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
            <condition name="EC160" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouTRD25" 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="NADLNGRD" 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="TINTRD59" type="TINType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
            <rule name="E100" />
            <condition name="C112" />
            <condition name="E094" />
            <condition name="E095" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TINTypeDESTRA" 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>
  <!--===== EN ROUTE EVENT =====-->
  <xs:complexType name="ENROUEVETEV">
    <xs:annotation>
      <xs:documentation>
        <description value="EN ROUTE EVENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlaTEV10" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Place" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaTEV10LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Place LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouTEV13" type="CountryCodeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code" />
            <codeList name="CountryCodesCommonTransit" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CTLCTL" type="CTLCTL">
        <xs:annotation>
          <xs:documentation>
            <description value="CTL_CONTROL" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="INCINC" type="INCINC" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="INCIDENT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SEAINFSF1" type="SEAINFSF1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="SEALS INFO" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRASHP" type="TRASHP" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSHIPMENT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== INCIDENT =====-->
  <xs:complexType name="INCINC">
    <xs:annotation>
      <xs:documentation>
        <description value="INCIDENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IncFlaINC3" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Incident flag" />
            <rule name="TR9030" />
            <rule name="R230" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IncInfINC4" type="Alphanumeric_Max350" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Incident information" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IncInfINC4LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Incident information LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDatINC6" type="DateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndAutINC7" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement authority" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndAutINC7LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement authority LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndPlaINC10" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement place" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndPlaINC10LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement place LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndCouINC12" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement country" />
            <codeList name="CountryCodesCommonTransit" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== SEALS INFO =====-->
  <xs:complexType name="SEAINFSF1">
    <xs:annotation>
      <xs:documentation>
        <description value="SEALS INFO" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SeaNumSF12" type="Numeric_Max4">
        <xs:annotation>
          <xs:documentation>
            <description value="Seals number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SEAIDSI1" type="SEAIDSI1" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="SEALS ID" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== TRANSHIPMENT =====-->
  <xs:complexType name="TRASHP">
    <xs:annotation>
      <xs:documentation>
        <description value="TRANSHIPMENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NewTraMeaIdeSHP26" type="Alphanumeric_Max27" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="New transport means identity" />
            <rule name="R190" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NewTraMeaIdeSHP26LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="New transport means identity LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NewTraMeaNatSHP54" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="New transport means nationality" />
            <rule name="R190" />
            <codeList name="CountryCodesFullList" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDatSHP60" type="DateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndAutSHP61" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement authority" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndAutSHP61LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement authority LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndPlaSHP63" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement place" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndPlaSHP63LNG" type="LanguageCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement place LNG" />
            <rule name="TR0099" />
            <codeList name="LanguageCodes" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndCouSHP65" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Endorsement country" />
            <codeList name="CountryCodesCommonTransit" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONNR3" type="CONNR3" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="CONTAINERS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

