<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== DA004:E_ARN_SAN_AMM_ACC  -->
  <!--===== Áðïäï÷Þ ôñïðïðïßçóçò ARN / SAN  -->
  <!--===== ICS Domain Definition  -->
  <!--===== DDNIA v4.00  -->
  <!--===== QTM942  -->
  <!--===== Included Features: [10, 12, 18, 20, 26, 27, 28, 29]  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <xs:include schemaLocation="doc.xsd" />
  <xs:include schemaLocation="complex_types_ics.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="DA004A" type="DA004A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="DA004A">
    <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="CUSOFFENTACTOFF700" type="CUSOFFENTACTOFF700" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(ACTUAL OFFICE OF ENTRY) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRACARENT601" type="TRACARENT601" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(ENTRY CARRIER) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ARROPE" type="ARROPE">
        <xs:annotation>
          <xs:documentation>
            <description value="ARRIVAL OPERATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PROV100" type="PROV100" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="PROVISION" />
          </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="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="TraModAtBorHEA76" type="Numeric_Max2">
        <xs:annotation>
          <xs:documentation>
            <description value="Transport mode at border" />
            <codeList name="TransportMode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotNumOfIteHEA305" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of items" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotNumOfPacHEA306" type="Numeric_Max7" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotGroMasHEA307" type="Decimal_11_3" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total gross mass" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UniIdeDivHEA132" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification of the means of transport" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocRefComHEA120" type="Flag">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number Communicated" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatTimAmeRegHEA2000" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration Amendment registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatTimAmeSubHEA2001" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration Amendment Submitted Date and Time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatTimAmeHEA113" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration Amendment date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (ACTUAL OFFICE OF ENTRY) CUSTOMS OFFICE =====-->
  <xs:complexType name="CUSOFFENTACTOFF700">
    <xs:annotation>
      <xs:documentation>
        <description value="(ACTUAL OFFICE OF ENTRY) CUSTOMS OFFICE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumCUSOFFENTACTOFF701" type="CORefNumType">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (ENTRY CARRIER) TRADER =====-->
  <xs:complexType name="TRACARENT601">
    <xs:annotation>
      <xs:documentation>
        <description value="(ENTRY CARRIER) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamTRACARENT604" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrNumTRACARENT607" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PstCodTRACARENT606" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CtyTRACARENT603" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCodTRACARENT605" 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="TRACARENT601LNG" 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="TINTRACARENT602" type="TINType">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ARRIVAL OPERATION =====-->
  <xs:complexType name="ARROPE">
    <xs:annotation>
      <xs:documentation>
        <description value="ARRIVAL OPERATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ArrLRNArrOpe2008" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival LRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MRNArrOpe2009" type="Alphanumeric_Max21">
        <xs:annotation>
          <xs:documentation>
            <description value="MRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DecRegDatTim2010" type="DateTimeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Declaration registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ArrRegDatTim2011" type="Numeric_12" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== PROVISION =====-->
  <xs:complexType name="PROV100">
    <xs:annotation>
      <xs:documentation>
        <description value="PROVISION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ShiNamPRO1" type="Alphanumeric_Max20">
        <xs:annotation>
          <xs:documentation>
            <description value="Ship Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMONumPRO2" type="Numeric_Max15">
        <xs:annotation>
          <xs:documentation>
            <description value="IMO Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ShiFlaPRO3" type="Numeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Ship Flag" />
            <codeList name="CountryOfOriginStatisticalValueCurrencyStatvalueCurrencyQmu" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GroTonPRO4" type="Numeric_Max6">
        <xs:annotation>
          <xs:documentation>
            <description value="Gross Tonnage" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MEAOFPRO200" type="MEAOFPRO200" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="MEANS OF PROVISIONING" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FUECON300" type="FUECON300" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="FUEL CONTROL" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== FUEL CONTROL =====-->
  <xs:complexType name="FUECON300">
    <xs:annotation>
      <xs:documentation>
        <description value="FUEL CONTROL" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelCodFUECON2" type="Alphanumeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Relief Code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="QuaFUECON3" type="Numeric_10">
        <xs:annotation>
          <xs:documentation>
            <description value="Quantity" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

