<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://ncts.dgtaxud.ec" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" targetNamespace="http://ncts.dgtaxud.ec" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="51.00" vc:minVersion="1.1">
   <xs:include schemaLocation="stypes.xsd" />  
    <!--==========================================================-->
  <!--===== TransitOperation                                    -->
  <!--==========================================================-->
  <xs:complexType name="TransitOperationTypeN01">
    <xs:annotation>
      <xs:documentation>
        <usedBy>Used by message: 1/87 messages: CC061C</usedBy>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
         <xs:element name="MRN" type="MRNContentType02">
        <xs:annotation>
          <xs:documentation>
            <description value="MRN" />
            <format value="an..35" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="controlNotificationDateAndTime" type="ControlNotificationDateAndTimeContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Control notification date and time" />
            <format value="an19" />
            <optionality value="R" />
            <xsdBaseType value="DateTimeType" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="notificationType" type="NotificationTypeContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Notification type" />
            <codeList code="CL384" type="business" name="NotificationType" />
            <format value="n1" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>    
  <xs:complexType name="TransitOperationTypeN02">
    <xs:annotation>
      <xs:documentation>
        <usedBy>Used by message: 1/87 messages: CC956C</usedBy>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
         <xs:element name="MRN" type="MRNContentType02">
        <xs:annotation>
          <xs:documentation>
            <description value="MRN" />
            <format value="an..35" />
            <optionality value="D" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	       <xs:element name="GRN" type="GRNContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="GRN" />
            <format value="an..24" />
            <optionality value="D" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="businessRejectionType" type="BusinessRejectionTypeContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Business rejection type" />
            <codeList code="NCL020" type="business" name="BusinessRejectionType" />
            <format value="an3" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>  
   <!--==========================================================-->
  <!--===== CustomsOfficeOfDestinationActual                    -->
  <!--==========================================================-->
  <xs:complexType name="CustomsOfficeOfDestinationActualType">
    <xs:annotation>
      <xs:documentation>
       <usedBy>Used by 14/87 messages: CC007C, CC025C, CC043C, CC044C, CC057C, CC141C, CD002C, CD003C, CD006C, CD018C, 
CD024C, CD049C, CD063C , CC061C</usedBy>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="referenceNumber" type="ReferenceNumberContentType01">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
            <codeList code="CL172" type="business" name="CustomsOfficeDestination" />
            <format value="an8" />
            <optionality value="R" />
            <xsdBaseType value="CORefNumType" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--==========================================================-->
  <!--===== TraderAtDestination                                 -->
  <!--==========================================================-->
  <xs:complexType name="TraderAtDestinationType02">
    <xs:annotation>
      <xs:documentation>
        <usedBy>Used by 5/87 messages: CC025C, CC043C, CC044C, CC057C,CC061C</usedBy>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="identificationNumber" type="IdentificationNumberContentType01">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
            <format value="an..17" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
    <!--==========================================================-->
  <!--===== FunctionalError                                     -->
  <!--==========================================================-->
  <xs:complexType name="FunctionalErrorTypeN01">
    <xs:annotation>
      <xs:documentation>
        <usedBy>Used by 1/87 messages: CC956C</usedBy>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="errorPointer" type="ErrorPointerContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Error pointer" />
            <format value="an..512" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="errorCode" type="NationalNctsP5FunctionalErrorCodes">
        <xs:annotation>
          <xs:documentation>
            <description value="Error code" />
            <codeList code="NCL021" type="technical" name="NationalNctsP5FunctionalErrorCodes" />
            <format value="n2" />
            <optionality value="R" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="errorReason" minOccurs="0" type="ErrorReasonContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Error reason" />
            <format value="an..7" />
            <optionality value="O" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="originalAttributeValue" minOccurs="0" type="OriginalAttributeValueContentType">
        <xs:annotation>
          <xs:documentation>
            <description value="Original attribute value" />
            <format value="an..512" />
            <optionality value="O" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>  
</xs:schema>