<?xml version="1.0"?>
<!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by . (..) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Documento">
    <xs:annotation>
      <xs:documentation>Informacion Electronica correspondiente al Manifiesto Aereo</xs:documentation>
    </xs:annotation>
    <!-- -->
    <xs:complexType>
      <xs:sequence>
      	<!-- Datos del encabezado -->
      	<xs:element name="tipo-accion" default="I" minOccurs="1"
      		maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				En este tag se debe indicar la funcionalidad del
      				mensajes. Los valores que puede tomar son: I:
      				Ingreso, M: Modificacion, A: Aclaracion Es
      				Modificacion cuando el mensaje se envia antes de
      				la consolidación definitiva del Manifiesto. Es
      				Aclaración cuando el mensaje se envia despues de
      				la consolidación definitiva del Manifiesto.
      			</xs:documentation>
      		</xs:annotation>
      		<xs:simpleType>
      			<xs:restriction base="xs:string">
      				<xs:enumeration value="I">
      					<xs:annotation>
      						<xs:documentation>
      							Ingreso
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:enumeration value="M">
      					<xs:annotation>
      						<xs:documentation>
      							Modificación
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:enumeration value="A">
      					<xs:annotation>
      						<xs:documentation>
      							Aclaración
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:enumeration value="N">
      					<xs:annotation>
      						<xs:documentation>
      							Anulación
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:maxLength value="1" />
      			</xs:restriction>
      		</xs:simpleType>
      	</xs:element>
                <xs:element name="numero-referencia" minOccurs="1"
      		maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				En este tag se debe indicar el nro. del documento
      				dado por el Emisor. En el caso de modif. poner
      				numero aceptacion del servidor dado en ingreso.
      			</xs:documentation>
      		</xs:annotation>
      		<xs:simpleType>
      			<xs:restriction base="xs:string">
      				<xs:maxLength value="15" />
      				<xs:minLength value="1"></xs:minLength>
      			</xs:restriction>
      		</xs:simpleType>
                </xs:element>
      	<xs:element name="numero-referencia-original" minOccurs="0"
      		maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Este tag es de uso interno del servidor y
      				corresponde al numero de Manifiesto asignado por
      				el emisor.
      			</xs:documentation>
      		</xs:annotation>
      		<xs:simpleType>
      			<xs:restriction base="xs:string">
      				<xs:maxLength value="15" />
      			</xs:restriction>
      		</xs:simpleType>
      	</xs:element>
      	<xs:element name="tipo-manifiesto" minOccurs="1"
      		maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				En este tag se debe indicar el tipo de manifiesto.
      				Los valores que puede tomar son: I:Ingreso
      				S:Salida
      			</xs:documentation>
      		</xs:annotation>
      		<xs:simpleType>
      			<xs:restriction base="xs:string">
      				<xs:enumeration value="I">
      					<xs:annotation>
      						<xs:documentation>
      							Ingreso
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:enumeration value="S">
      					<xs:annotation>
      						<xs:documentation>
      							Salida
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:maxLength value="1" />
      			</xs:restriction>
      		</xs:simpleType>
      	</xs:element>
      	<xs:element name="cond-carga" minOccurs="1" maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				En este tag se debe indicar si el manifiesto viene
      				o no con carga. Los valores que puede tomar son:
      				S:Manifiesto con carga N:Manifiesto sin carga
      			</xs:documentation>
      		</xs:annotation>
      		<xs:simpleType>
      			<xs:restriction base="xs:string">
      				<xs:enumeration value="S">
      					<xs:annotation>
      						<xs:documentation>
      							Manifiesto con carga
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:enumeration value="N">
      					<xs:annotation>
      						<xs:documentation>
      							Manifiesto sin carga
      						</xs:documentation>
      					</xs:annotation>
      				</xs:enumeration>
      				<xs:maxLength value="1" />
      			</xs:restriction>
      		</xs:simpleType>
      	</xs:element>
      	<!-- -->
      	<xs:element name="Fechas" minOccurs="1" maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Fechas asociadas al documento
      			</xs:documentation>
      		</xs:annotation>
      		<xs:complexType>
      			<xs:sequence>
      				<xs:element name="fecha" minOccurs="1"
      					maxOccurs="unbounded">
      					<xs:complexType>
      						<xs:sequence>
      							<xs:element name="nombre"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										nombre de la fecha
      										asociada al documento. Los
      										valores que puede tomar
      										son : FARRIBO : Fecha de
      										arribo FZARPE : Fecha de
      										zarpe FEMISION : Fecha de
      										emisión del Encabezado de
      										Manifiesto (fecha de
      										envío) FARRIBOEFEC : Fecha
      										de arribo efectiva.
      										FZARPEEFEC : Fecha de
      										zarpe efectiva.
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:enumeration
      											value="FARRIBO">
      											<xs:annotation>
      												<xs:documentation>
      													Fecha de
      													arribo
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="FZARPE">
      											<xs:annotation>
      												<xs:documentation>
      													Fecha de zarpe
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="FEM">
      											<xs:annotation>
      												<xs:documentation>
      													Fecha de
      													emision del
      													encabezado del
      													manifiesto
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="FARRIBEFEC">
      											<xs:annotation>
      												<xs:documentation>
      													Fecha de
      													arribo
      													efectiva
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="FZARPEEFEC">
      											<xs:annotation>
      												<xs:documentation>
      													Fecha de zarpe
      													efectiva
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:maxLength value="10" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="valor" maxOccurs="1"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										valor de la fecha en
      										formato dd/mm/yyyy hh:mm
      										formato 24 horas
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string" />
      								</xs:simpleType>
      							</xs:element>
      						</xs:sequence>
      					</xs:complexType>
      				</xs:element>
      			</xs:sequence>
      		</xs:complexType>
      	</xs:element>
      	<xs:element name="Locaciones" minOccurs="1" maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Locaciones asociadas al documento.
      			</xs:documentation>
      		</xs:annotation>
      		<xs:complexType>
      			<xs:sequence>
      				<xs:element name="locacion" minOccurs="1"
      					maxOccurs="unbounded">
      					<xs:complexType>
      						<xs:sequence>
      							<xs:element name="nombre"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										nombre del tipo de
      										locacion asociada al
      										documento. Los valores que
      										puede tomar son : PD :
      										Puerto de Desembarque, en
      										el caso de Ingreso PE :
      										Puerto de Embarque, para
      										el caso de Salida
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:enumeration
      											value="PD">
      											<xs:annotation>
      												<xs:documentation>
      													Puerto de
      													desembarque,
      													para el caso
      													de Ingreso.
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="PE">
      											<xs:annotation>
      												<xs:documentation>
      													Puerto de
      													embarque, para
      													el caso de
      													Salida
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:maxLength value="10" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="codigo"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										codigo IATA de la locacion
      										asociada al documento.
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength value="3" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      						</xs:sequence>
      					</xs:complexType>
      				</xs:element>
      			</xs:sequence>
      		</xs:complexType>
      	</xs:element>
      	<xs:element name="Participaciones" minOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Participantes asociados al documento.
      			</xs:documentation>
      		</xs:annotation>
      		<xs:complexType>
      			<xs:sequence>
      				<xs:element name="participacion" minOccurs="1"
      					maxOccurs="unbounded">
      					<xs:complexType>
      						<xs:sequence>
      							<xs:element name="nombre"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										tipo de participante
      										asociado al documento. Los
      										valores que puede tomar
      										este campo son : CAER :
      										Compañía aérea EMI :
      										Emisor del encabezado del
      										manifiesto ALM :
      										Almacenista (en caso de
      										ser mas de uno se asocia
      										el principal, el o los
      										otros almacenistas se
      										declaran en la guia
      										correspondiente).
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:enumeration
      											value="CAER">
      											<xs:annotation>
      												<xs:documentation>
      													Compañia Aérea
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="EMI">
      											<xs:annotation>
      												<xs:documentation>
      													Emisor del
      													encabezado del
      													manifiesto
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="ALM">
      											<xs:annotation>
      												<xs:documentation>
      													Almacenista
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:maxLength value="5" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="tipo-id"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										tipo de identificacion del
      										participante en el
      										documento, cuyo valor
      										puede ser RUT, código
      										IATA, código dado Aduana
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:enumeration
      											value="RUT" />
      										<xs:enumeration
      											value="IATA" />
      										<xs:maxLength value="30" />
      										<xs:enumeration
      											value="otro">
      										</xs:enumeration>
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="valor-id"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se indica el
      										valor del identificador
      										del participante en el
      										documento, cuyo tipo fue
      										indicado en el tag
      										"tipo-id".
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength value="255" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      						</xs:sequence>
      					</xs:complexType>
      				</xs:element>
      			</xs:sequence>
      		</xs:complexType>
      	</xs:element>
      	<xs:element name="OpTransporte" minOccurs="1" maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Operaciones de Transporte asociada al documento
      			</xs:documentation>
      		</xs:annotation>
      		<xs:complexType>
      			<xs:sequence>
      				<xs:element name="optransporte" minOccurs="1"
      					maxOccurs="1">
      					<xs:complexType>
      						<xs:sequence>
      							<xs:element name="numero-operacion"
      								minOccurs="0">
      								<xs:annotation>
      									<xs:documentation>
      										Este tag no debe ser
      										llenado por el emisor en
      										el ingreso. En caso de
      										modificación 'M' este
      										valor es obligatorio
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength value="15" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="registro-nave"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										Este tag corresponde a la
      										matricula de la aeronave
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength
      											value="10">
      											<xs:annotation>
      												<xs:documentation>
      													Este tag
      													corresponde a
      													la matricula
      													de la nave y
      													es
      													Obligatorio.
      												</xs:documentation>
      											</xs:annotation>
      										</xs:maxLength>
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="viaje" maxOccurs="1"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										Este tag corresponde a la
      										identificacion del vuelo.
      										Se recomienda incluir
      										código de la línea aerea.
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength value="30" />
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element><!-- -->
      							<xs:element name="Itinerario"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										Itinerario asociado a la
      										operación de transporte
      									</xs:documentation>
      								</xs:annotation>
      								<xs:complexType>
      									<xs:sequence>
      										<xs:element
      											name="itinerary" minOccurs="1" maxOccurs="unbounded">
      											<xs:complexType>
      												<xs:sequence>
      													<xs:element name="secuencia" minOccurs="1">
      														<xs:annotation>
      															<xs:documentation>
      																En
      																este
      																tag
      																se
      																debe
      																indicar
      																la
      																secuencia
      																del
      																itinerario
      																(Orden
      																de
      																racalada)
      															</xs:documentation>
      														</xs:annotation>
      														<xs:simpleType>
      															<xs:restriction base="xs:string"/>
      														</xs:simpleType>
      													</xs:element>
      													<xs:element
      														name="lugar" maxOccurs="1" minOccurs="1">
      														<xs:annotation>
      															<xs:documentation>
      																En
      																este
      																tag
      																se
      																debe
      																indicar
      																el
      																codigo
      																IATA
      																del
      																lugar
      																que
      																forma
      																parte
      																del
      																itinerario
      															</xs:documentation>
      														</xs:annotation>
      														<xs:simpleType>
      															<xs:restriction base="xs:string">
      																<xs:maxLength value="5" />
      															</xs:restriction>
      														</xs:simpleType>
      													</xs:element>
      												</xs:sequence>
      											</xs:complexType>
      										</xs:element>
      									</xs:sequence>
      								</xs:complexType>
      							</xs:element><!-- -->
      						</xs:sequence>
      					</xs:complexType>
      				</xs:element>
      			</xs:sequence>
      		</xs:complexType>
      	</xs:element>
      	<xs:element name="Observaciones" minOccurs="0"
      		maxOccurs="1">
      		<xs:annotation>
      			<xs:documentation>
      				Se indican las fechas correspondientes en el
      				documento
      			</xs:documentation>
      		</xs:annotation>
      		<xs:complexType>
      			<xs:sequence>
      				<xs:element name="observacion" minOccurs="1"
      					maxOccurs="unbounded">
      					<xs:complexType>
      						<xs:sequence>
      							<xs:element name="nombre"
      								minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se debe
      										indicar el tipo de
      										observacion que se
      										consignará en el tag
      										"contenido". Los valores
      										que puede tomar son: GRAL
      										: Observaciones generales
      										texto libre MOT : En caso
      										de anulación o aclaración
      										se debe indicar el motivo
      										en este campo. CONT : Se
      										debe consignar el número
      										dado bajo el plan de
      										contingencia por la Aduana
      										respectiva.
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:enumeration
      											value="GRAL">
      											<xs:annotation>
      												<xs:documentation>
      													Observación
      													General, texto
      													libre
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="MOT">
      											<xs:annotation>
      												<xs:documentation>
      													En caso de
      													Anulación o
      													Aclaración de
      													debe indicar
      													el motivo
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="CONT">
      											<xs:annotation>
      												<xs:documentation>
      													Se debe
      													consignar el
      													número dado
      													bajo plan de
      													contingencia
      													por la aduana
      													respectiva.
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:enumeration
      											value="VNR">
      											<xs:annotation>
      												<xs:documentation>
      													VNR: Vuelo no
      													regular
      												</xs:documentation>
      											</xs:annotation>
      										</xs:enumeration>
      										<xs:maxLength value="4" />
      										<xs:enumeration
      											value="CAR">
      										</xs:enumeration>
      										<xs:minLength value="1"></xs:minLength>
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      							<xs:element name="contenido"
      								maxOccurs="1" minOccurs="1">
      								<xs:annotation>
      									<xs:documentation>
      										En este tag se debe
      										indicar el contendido de
      										la observacion
      									</xs:documentation>
      								</xs:annotation>
      								<xs:simpleType>
      									<xs:restriction
      										base="xs:string">
      										<xs:maxLength value="255" />
      										<xs:minLength value="1"></xs:minLength>
      									</xs:restriction>
      								</xs:simpleType>
      							</xs:element>
      						</xs:sequence>
      					</xs:complexType>
      				</xs:element>
      			</xs:sequence>
      		</xs:complexType>
      	</xs:element>
      </xs:sequence>
      <xs:attribute name="tipo" use="required">
        <xs:annotation>
          <xs:documentation>
            Corresponde al tipo de documento para este caso es MFTOA. 
			Este campo debe ser obligatorio
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="version" use="required">
        <xs:annotation>
          <xs:documentation>
            Corresponde a la version del tipo de documento a enviar.
			En este caso el valor a tomar es  2.0
			Este campo debe ser obligatorio
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
    <!-- -->
  </xs:element>
</xs:schema>

