<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== DA413:E_ARN_AMM  -->
  <!--===== ARN  AMENDMENT  -->
  <!--===== 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="DA413A" type="DA413A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="DA413A">
    <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">
        <xs:annotation>
          <xs:documentation>
            <description value="(ACTUAL OFFICE OF ENTRY) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRACARENT601" type="TRACARENT601">
        <xs:annotation>
          <xs:documentation>
            <description value="(ENTRY CARRIER) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ARRITE" type="ARRITE" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="ARRIVAL ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WARIDE100" type="WARIDE100" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="WAREHOUSE IDENTIFICATION" />
          </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" />
            <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="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="TotNumOfPacHEA306" type="Numeric_Max7">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of packages" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotGroMasHEA307" type="Decimal_11_3">
        <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="LRNHEA" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival LRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatTimPreHEA" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Date and Time of presentation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotNumOfIteHEA305" type="Numeric_Max5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total number of arrival items" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatTimPreofScArHEA" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Date and time of scheduled arrival" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrAmRegDTHEA15" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Presentation Amendment registration date and time" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrAmDTHEA17" type="Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Presentation Amendment Submitted 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" />
            <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 ITEM =====-->
  <xs:complexType name="ARRITE">
    <xs:annotation>
      <xs:documentation>
        <description value="ARRIVAL ITEM" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NumArrIte2014" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Arrival item number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRADOCDAT3" type="TRADOCDAT3">
        <xs:annotation>
          <xs:documentation>
            <description value="TRANSPORT DOCUMENT DATA" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSDATREFARRITE" type="CUSDATREFARRITE" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="CUSTOMS DATA REFERENCE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CUSTOMS DATA REFERENCE =====-->
  <xs:complexType name="CUSDATREFARRITE">
    <xs:annotation>
      <xs:documentation>
        <description value="CUSTOMS DATA REFERENCE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MRN502" type="Alphanumeric_Max21">
        <xs:annotation>
          <xs:documentation>
            <description value="MRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouOffFirEntDec501" type="CountryCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Country code of Office of first Entry declared" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CUSDATREFDETARRITE" type="CUSDATREFDETARRITE" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="CUSTOMS DATA REFERENCE DETAILS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== CUSTOMS DATA REFERENCE DETAILS =====-->
  <xs:complexType name="CUSDATREFDETARRITE">
    <xs:annotation>
      <xs:documentation>
        <description value="CUSTOMS DATA REFERENCE DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MRNIteNum500" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="MRN Item Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WARIDEARR100" type="WARIDEARR100" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="WAREHOUSE IDENTIFICATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== WAREHOUSE IDENTIFICATION =====-->
  <xs:complexType name="WARIDEARR100">
    <xs:annotation>
      <xs:documentation>
        <description value="WAREHOUSE IDENTIFICATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WarTypWARIDEAR001" type="Alpha_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Warehouse type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AutCouWARIDEAR002" type="CountryCodeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Authorizing country" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WarIdeWARIDEAR003" type="Alphanumeric_Max14">
        <xs:annotation>
          <xs:documentation>
            <description value="Warehouse identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WarKIdWARIDEAR004" type="Alphanumeric_21" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Warehouse Keeper identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

