<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"  xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="51.6.0" vc:minVersion="1.1">
  <!--================================================================================-->
  <!--===== Modification Type                                                         -->
  <!--===== Format: a1                                                                -->
  <!--===== CL024                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="ModificationType">
    <xs:annotation>
      <xs:documentation>The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:documentation>Create</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:documentation>Delete</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:documentation>Update</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== Month of Year                                                             -->
  <!--===== Format: an2                                                               -->
  <!--===== CL026                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="MonthOfYear">
    <xs:annotation>
      <xs:documentation />
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="01">
        <xs:annotation>
          <xs:documentation>January</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="02">
        <xs:annotation>
          <xs:documentation>February</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="03">
        <xs:annotation>
          <xs:documentation>March</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="04">
        <xs:annotation>
          <xs:documentation>April</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="05">
        <xs:annotation>
          <xs:documentation>May</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="06">
        <xs:annotation>
          <xs:documentation>June</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="07">
        <xs:annotation>
          <xs:documentation>July</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="08">
        <xs:annotation>
          <xs:documentation>August</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="09">
        <xs:annotation>
          <xs:documentation>September</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation>October</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation>November</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>December</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== Flag                                                                      -->
  <!--===== Format: n1                                                                -->
  <!--===== CL027                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="Flag">
    <xs:annotation>
      <xs:documentation>Used for attributes that can have a positive or a negative value. The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>NO</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>YES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== XML Error Codes                                                           -->
  <!--===== Format: n2                                                                -->
  <!--===== CL030                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="XmlErrorCodes">
    <xs:annotation>
      <xs:documentation>Defines the codes to be used for reporting errors on XML messages. The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>Incorrect enumeration</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="13">
        <xs:annotation>
          <xs:documentation>Missing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="15">
        <xs:annotation>
          <xs:documentation>Not supported in this position</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18">
        <xs:annotation>
          <xs:documentation>Unspecified Error / Other</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35">
        <xs:annotation>
          <xs:documentation>Too many repetitions</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="39">
        <xs:annotation>
          <xs:documentation>Element too long (length constraint)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="40">
        <xs:annotation>
          <xs:documentation>Element too short (length constraint)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="50">
        <xs:annotation>
          <xs:documentation>Invalid Value for the specific type</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51">
        <xs:annotation>
          <xs:documentation>Invalid value according to the pattern</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52">
        <xs:annotation>
          <xs:documentation>Invalid XML format</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53">
        <xs:annotation>
          <xs:documentation>Invalid character(s)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="54">
        <xs:annotation>
          <xs:documentation>Value is lower than the allowed lowest limit (Minimum Inclusive)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="55">
        <xs:annotation>
          <xs:documentation>Value is greater than the allowed upper limit (Maximum Inclusive)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="56">
        <xs:annotation>
          <xs:documentation>Value is lower than or equal to the allowed lowest limit (Minimum Exlcusive)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="57">
        <xs:annotation>
          <xs:documentation>Value is greater than or equal to the allowed upper limit (Maximum Exclusive)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== Message Types                                                             -->
  <!--===== Format: an..6                                                             -->
  <!--===== CL060                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="MessageTypes">
    <xs:annotation>
      <xs:documentation>The list of codes used to identify the type of messages exchanged on the Common Domain and on the External Domain (e.g. CD001B, CD302A, CC515C, CD801A).The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CC004C">
        <xs:annotation>
          <xs:documentation>Amendment Acceptance</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC007C">
        <xs:annotation>
          <xs:documentation>Arrival Notification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC009C">
        <xs:annotation>
          <xs:documentation>Invalidation Decision</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC013C">
        <xs:annotation>
          <xs:documentation>DECLARATION AMENDMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC014C">
        <xs:annotation>
          <xs:documentation>DECLARATION CANCELLATION REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC015C">
        <xs:annotation>
          <xs:documentation>DECLARATION DATA</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC017C">
        <xs:annotation>
          <xs:documentation>DEPARTURE CONTROL RESULTS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC019C">
        <xs:annotation>
          <xs:documentation>DISCREPANCIES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC022C">
        <xs:annotation>
          <xs:documentation>NOTIFICATION TO AMEND DECLARATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC023C">
        <xs:annotation>
          <xs:documentation>GUARANTOR NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC025C">
        <xs:annotation>
          <xs:documentation>GOODS RELEASE NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC026C">
        <xs:annotation>
          <xs:documentation>GUARANTEE ACCESS CODES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC028C">
        <xs:annotation>
          <xs:documentation>MRN ALLOCATED</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC029C">
        <xs:annotation>
          <xs:documentation>RELEASE FOR TRANSIT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC034C">
        <xs:annotation>
          <xs:documentation>QUERY ON GUARANTEES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC035C">
        <xs:annotation>
          <xs:documentation>RECOVERY NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC037C">
        <xs:annotation>
          <xs:documentation>RESPONSE QUERY ON GUARANTEES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC040C">
        <xs:annotation>
          <xs:documentation>TRANSIT CANCELLATION NOTIFICATION TO AES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC042C">
        <xs:annotation>
          <xs:documentation>DESTINATION CONTROL RESULTS TO AES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC043C">
        <xs:annotation>
          <xs:documentation>UNLOADING PERMISSION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC044C">
        <xs:annotation>
          <xs:documentation>UNLOADING REMARKS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC045C">
        <xs:annotation>
          <xs:documentation>WRITE-OFF NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC048C">
        <xs:annotation>
          <xs:documentation>RECOVERY COMMUNICATION TO AES</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC051C">
        <xs:annotation>
          <xs:documentation>NO RELEASE FOR TRANSIT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC054C">
        <xs:annotation>
          <xs:documentation>REQUEST OF RELEASE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC055C">
        <xs:annotation>
          <xs:documentation>GUARANTEE NOT VALID</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC056C">
        <xs:annotation>
          <xs:documentation>REJECTION FROM OFFICE OF DEPARTURE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC057C">
        <xs:annotation>
          <xs:documentation>REJECTION FROM OFFICE OF DESTINATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC060C">
        <xs:annotation>
          <xs:documentation>CONTROL DECISION NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC140C">
        <xs:annotation>
          <xs:documentation>REQUEST ON NON-ARRIVED MOVEMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC141C">
        <xs:annotation>
          <xs:documentation>INFORMATION ABOUT NON-ARRIVED MOVEMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC170C">
        <xs:annotation>
          <xs:documentation>PRESENTATION NOTIFICATION FOR THE PRE-LODGED DECLARATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC182C">
        <xs:annotation>
          <xs:documentation>FORWARDED INCIDENT NOTIFICATION TO ED</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC190C">
        <xs:annotation>
          <xs:documentation>TRANSIT PRESENTATION NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC191C">
        <xs:annotation>
          <xs:documentation>TRANSIT PRESENTATION NOTIFICATION RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC224C">
        <xs:annotation>
          <xs:documentation>INDIVIDUAL GUARANTEE VOUCHER SOLD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC225C">
        <xs:annotation>
          <xs:documentation>GUARANTEE UPDATE NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC228C">
        <xs:annotation>
          <xs:documentation>COMPREHENSIVE GUARANTEE CANCELLATION LIABILITY LIBERATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC229C">
        <xs:annotation>
          <xs:documentation>INDIVIDUAL GUARANTEE VOUCHER REVOCATION NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC231C">
        <xs:annotation>
          <xs:documentation>COMPREHENSIVE GUARANTEE INVALIDATION NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC906C">
        <xs:annotation>
          <xs:documentation>FUNCTIONAL NACK</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC917C">
        <xs:annotation>
          <xs:documentation>XML NACK</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CC928C">
        <xs:annotation>
          <xs:documentation>POSITIVE ACKNOWLEDGE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PTT38C">
        <xs:annotation>
          <xs:documentation>AVISO FALTA ENVIA DOCUMENTOS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PTT44C">
        <xs:annotation>
          <xs:documentation>NOTIFICACAO RESULTADO CONTROLO</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PTT46C">
        <xs:annotation>
          <xs:documentation>ENVIO DOCUMENTOS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
	  <xs:enumeration value="PTT99C">
        <xs:annotation>
          <xs:documentation>Mensagem Tecnica</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD001C">
        <xs:annotation>
          <xs:documentation>AAR</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD002C">
        <xs:annotation>
          <xs:documentation>AAR Request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD003C">
        <xs:annotation>
          <xs:documentation>AAR Response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD006C">
        <xs:annotation>
          <xs:documentation>ARRIVAL ADVICE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD010C">
        <xs:annotation>
          <xs:documentation>CANCELLATION NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD012C">
        <xs:annotation>
          <xs:documentation>AAR-TIR-SPEED</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD018C">
        <xs:annotation>
          <xs:documentation>DESTINATION CONTROL RESULTS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD024C">
        <xs:annotation>
          <xs:documentation>FORWARDED ARRIVAL ADVICE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD027C">
        <xs:annotation>
          <xs:documentation>MOVEMENT QUERY</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD038C">
        <xs:annotation>
          <xs:documentation>RESPONSE TO MOVEMENT QUERY</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD049C">
        <xs:annotation>
          <xs:documentation>DISCREPANCIES SOLVED NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD050C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED TRANSIT RECORD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD059C">
        <xs:annotation>
          <xs:documentation>CANCEL ENQUIRY NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD063C">
        <xs:annotation>
          <xs:documentation>RECOVERY COMMUNICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD070C">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF SYSTEM UNAVAILABILITY TO CD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD071C">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF SYSTEM UNAVAILABILITY TO ND</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD078C">
        <xs:annotation>
          <xs:documentation>INTER-DOMAIN LINKING</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD094C">
        <xs:annotation>
          <xs:documentation>STATUS REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD095C">
        <xs:annotation>
          <xs:documentation>STATUS RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD114C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED TRANSIT RECORD REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD115C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED TRANSIT RECORD RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD118C">
        <xs:annotation>
          <xs:documentation>NOTIFICATION CROSSING FRONTIER</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD142C">
        <xs:annotation>
          <xs:documentation>ENQUIRY REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD143C">
        <xs:annotation>
          <xs:documentation>ENQUIRY RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD144C">
        <xs:annotation>
          <xs:documentation>ENQUIRY INFORMATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD145C">
        <xs:annotation>
          <xs:documentation>ENQUIRY INFORMATION REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD150C">
        <xs:annotation>
          <xs:documentation>RECOVERY REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD151C">
        <xs:annotation>
          <xs:documentation>RECOVERY ACCEPTANCE NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD152C">
        <xs:annotation>
          <xs:documentation>RECOVERY DISPATCH NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD160C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED EXIT FOR TRANSIT RECORD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD164C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED EXIT FOR TRANSIT RECORD REQUEST</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD165C">
        <xs:annotation>
          <xs:documentation>ANTICIPATED EXIT FOR TRANSIT RECORD RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD168C">
        <xs:annotation>
          <xs:documentation>NOTIFICATION LEAVING SECURITY AREA</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD180C">
        <xs:annotation>
          <xs:documentation>INCIDENT NOTIFICATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD181C">
        <xs:annotation>
          <xs:documentation>FORWARDED INCIDENT NOTIFICATION TO CD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD200C">
        <xs:annotation>
          <xs:documentation>GUARANTEE CHECK</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD201C">
        <xs:annotation>
          <xs:documentation>GUARANTEE CHECK RESULT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD203C">
        <xs:annotation>
          <xs:documentation>GUARANTEE USE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD204C">
        <xs:annotation>
          <xs:documentation>GUARANTEE USE CANCELLATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD205C">
        <xs:annotation>
          <xs:documentation>GUARANTEE USE RESULT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD209C">
        <xs:annotation>
          <xs:documentation>CREDIT REFERENCE AMOUNT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD411D">
        <xs:annotation>
          <xs:documentation>SENDING OF STATISTICS DATA</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD903D">
        <xs:annotation>
          <xs:documentation>WARNING MESSAGE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD906C">
        <xs:annotation>
          <xs:documentation>FUNCTIONAL NACK</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD917C">
        <xs:annotation>
          <xs:documentation>XML NACK</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD971C">
        <xs:annotation>
          <xs:documentation>FULL UNAVAILABILITY SCHEDULE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD974C">
        <xs:annotation>
          <xs:documentation>NCA Availability request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CD975C">
        <xs:annotation>
          <xs:documentation>NCA Availability response</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== Country Codes (Customs Office Lists)                                      -->
  <!--===== Format: a2                                                                -->
  <!--===== CL070                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="CountryCodesCustomsOfficeLists">
    <xs:annotation>
      <xs:documentation>This Codelist includes the countries who are maintaining their Customs Offices in CS/RD2. It lists the country codes used as the first two characters of the Customs Office Reference Number. It corresponds to the content of the code list CL009 excluding 'AX', 'GF', 'GG', 'GP', 'IM', 'JE', 'LI', 'MC', 'MF', 'MQ', 'RE', 'SJ', 'XS' and 'YT'. This codelist is used for the Customs Office List. The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AD">
        <xs:annotation>
          <xs:documentation>Andorra</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AT">
        <xs:annotation>
          <xs:documentation>Austria</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BE">
        <xs:annotation>
          <xs:documentation>Belgium</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BG">
        <xs:annotation>
          <xs:documentation>Bulgaria</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CH">
        <xs:annotation>
          <xs:documentation>Switzerland</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CY">
        <xs:annotation>
          <xs:documentation>Cyprus</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CZ">
        <xs:annotation>
          <xs:documentation>Czech Republic</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DE">
        <xs:annotation>
          <xs:documentation>Germany</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DK">
        <xs:annotation>
          <xs:documentation>Denmark</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EE">
        <xs:annotation>
          <xs:documentation>Estonia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ES">
        <xs:annotation>
          <xs:documentation>Spain</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FI">
        <xs:annotation>
          <xs:documentation>Finland</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FR">
        <xs:annotation>
          <xs:documentation>France</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GB">
        <xs:annotation>
          <xs:documentation>United Kingdom</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GR">
        <xs:annotation>
          <xs:documentation>Greece</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HR">
        <xs:annotation>
          <xs:documentation>Croatia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HU">
        <xs:annotation>
          <xs:documentation>Hungary</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE">
        <xs:annotation>
          <xs:documentation>Ireland</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IS">
        <xs:annotation>
          <xs:documentation>Iceland</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IT">
        <xs:annotation>
          <xs:documentation>Italy</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LT">
        <xs:annotation>
          <xs:documentation>Lithuania</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LU">
        <xs:annotation>
          <xs:documentation>Luxembourg</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LV">
        <xs:annotation>
          <xs:documentation>Latvia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MK">
        <xs:annotation>
          <xs:documentation>North Macedonia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MT">
        <xs:annotation>
          <xs:documentation>Malta</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NL">
        <xs:annotation>
          <xs:documentation>Netherlands</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NO">
        <xs:annotation>
          <xs:documentation>Norway</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PL">
        <xs:annotation>
          <xs:documentation>Poland</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PT">
        <xs:annotation>
          <xs:documentation>Portugal</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RO">
        <xs:annotation>
          <xs:documentation>Romania</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RS">
        <xs:annotation>
          <xs:documentation>Serbia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SE">
        <xs:annotation>
          <xs:documentation>Sweden</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SI">
        <xs:annotation>
          <xs:documentation>Slovenia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SK">
        <xs:annotation>
          <xs:documentation>Slovakia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SM">
        <xs:annotation>
          <xs:documentation>San Marino</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TR">
        <xs:annotation>
          <xs:documentation>Turkey</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="XI">
        <xs:annotation>
          <xs:documentation>United Kingdom (Northern Ireland)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== System Unavailability Type                                                -->
  <!--===== Format: a1                                                                -->
  <!--===== CL079                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="SystemUnavailabilityType">
    <xs:annotation>
      <xs:documentation>Used for the attribute SYSTEM UNAVAILABILITY.System Unavailability Type.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:documentation>Business service not implemented</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:documentation>Scheduled Unavailability</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:documentation>Unscheduled Unavailability</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--================================================================================-->
  <!--===== AES/NCTS P5 Functional Error Codes                                        -->
  <!--===== Format: n2                                                                -->
  <!--===== CL180                                                                     -->
  <!--================================================================================-->
  <xs:simpleType name="AesNctsP5FunctionalErrorCodes">
    <xs:annotation>
      <xs:documentation>Set of generic error codes, specific for AES and NCTS P5. The values of this codelist are also available and updated in CS/RD2.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>Incorrect enumeration</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="13">
        <xs:annotation>
          <xs:documentation>Missing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="14">
        <xs:annotation>
          <xs:documentation>Value not supported in this position (Rule constraint)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="15">
        <xs:annotation>
          <xs:documentation>Not supported in this position</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="26">
        <xs:annotation>
          <xs:documentation>Duplicate detected</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="50">
        <xs:annotation>
          <xs:documentation>Invalid Transitional Constraint</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51">
        <xs:annotation>
          <xs:documentation>Invalid TMS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52">
        <xs:annotation>
          <xs:documentation>Invalid FMS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="90">
        <xs:annotation>
          <xs:documentation>Unknown MRN</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="92">
        <xs:annotation>
          <xs:documentation>Message out of sequence</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="93">
        <xs:annotation>
          <xs:documentation>Invalid MRN</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
