<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== ID04:I_IMP_ACC  -->
  <!--===== Import Declaration Amendment Acceptance  -->
  <!--===== ICS Domain Definition  -->
  <!--===== DDNIA v13.00  -->
  <!--===== Included Features: [10, 12, 18, 20, 26, 27, 28, 29]  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="simple_types.xsd" />
  <xs:include schemaLocation="complex_types.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <xs:include schemaLocation="tcl.xsd" />
  <xs:include schemaLocation="doc.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="ID04A" type="ID04A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="ID04A">
    <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="TRACONCE1" type="TRACONCE1">
        <xs:annotation>
          <xs:documentation>
            <description value="(CONSIGNEE) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GOOITEGDS" type="GOOITEGDS" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="GOODS ITEM" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRAREP" type="TRAREP" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(REPRESENTATIVE) TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPCUSOFF" type="IMPCUSOFF">
        <xs:annotation>
          <xs:documentation>
            <description value="(IMPORT) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SUMDEBMES" type="SUMDEBMES" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="SUMMARY DEBIT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="INFMESHEA" type="INFMESHEA" minOccurs="0" maxOccurs="20">
        <xs:annotation>
          <xs:documentation>
            <description value="INFORMATION MESSAGE" />
          </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="DatePrepType">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimOfPreMES10" type="TimeType">
        <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="DocNumHEA5" type="MRNType">
        <xs:annotation>
          <xs:documentation>
            <description value="Document/reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmdDatHEA599" type="Numeric_8">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of amendment" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GraTotTaxAmoHEA1" type="Decimal_15_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Grand total taxes amount" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmeAccDatHEA602" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Amendment acceptance date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddDecDatHEA1024" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Additional Declaration Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (CONSIGNEE) TRADER =====-->
  <xs:complexType name="TRACONCE1">
    <xs:annotation>
      <xs:documentation>
        <description value="(CONSIGNEE) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamCE17" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumCE122" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodCE123" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitCE124" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCE125" 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="NADLNGCE" 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="TINCE159" type="TINType">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpeMenCE1003" type="Alphanumeric_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </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="IteNumGDS7" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Item number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProReqEndDat4003" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Procedure requested End Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CALTAXGOD" type="CALTAXGOD" minOccurs="0" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="(TAXES) CALCULATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (TAXES) CALCULATION =====-->
  <xs:complexType name="CALTAXGOD">
    <xs:annotation>
      <xs:documentation>
        <description value="(TAXES) CALCULATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TypOfTaxCTX1" type="Alphanumeric_3">
        <xs:annotation>
          <xs:documentation>
            <description value="Type of tax" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TaxBasCTX1" type="Decimal_15_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Tax base" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RatOfTaxCTX1" type="Alphanumeric_Max15" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Rate of tax" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmoOfTaxTCL1" type="Decimal_15_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Amount of tax" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MetOfPayCTX1" type="Alpha_1">
        <xs:annotation>
          <xs:documentation>
            <description value="Method of payment" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CalTypTAXCALGI" type="Alphanumeric_Max70" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Calculation Type" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InRelTAXCALGI" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="In Relief" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SusDueDatTAXCALGI" type="Numeric_8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Suspension Due Date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== (REPRESENTATIVE) TRADER =====-->
  <xs:complexType name="TRAREP">
    <xs:annotation>
      <xs:documentation>
        <description value="(REPRESENTATIVE) TRADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NamTRE1" type="TradNameType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Name" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrAndNumTRE1" type="StreetNumType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Street and number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PosCodTRE1" type="PostalCodeType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Postal code" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitTRE1" type="CityType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="City" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CouCodTRE1" 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="TRAREPLNG" 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="TINTRE1" type="TINType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TIN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpeMenTRE410" type="Alphanumeric_5" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Special Mention" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

