<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.1 U (http://www.xmlspy.com) by Federico González Oliveros (IGAE) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="Inversiones">
		<xs:annotation>
			<xs:documentation>Esquema para la carga masiva de inversiones</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="RegistroCabecera">
					<xs:annotation>
						<xs:documentation>Registro único e inicial con el ejercicio y nº de proyectos</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:attribute name="ejercicio" type="xs:integer" use="required">
							<xs:annotation>
								<xs:documentation>Ejercicio de elaboración (cuatro dígitos)</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="numproyectos" type="xs:integer" use="required">
							<xs:annotation>
								<xs:documentation>Número de proyectos (cuatro dígitos)</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:sequence maxOccurs="unbounded">
					<xs:element name="RegistroDetalleProyectos">
						<xs:annotation>
							<xs:documentation>Registro con los datos de un proyecto.</xs:documentation>
						</xs:annotation>
						<xs:complexType>
							<xs:sequence minOccurs="0" xml:base="">
        <xs:element name="RepartoAcumulado" minOccurs="0">
         <xs:annotation>
										<xs:documentation>Regionalización de lo acumulado</xs:documentation>
									</xs:annotation>
          <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
           <xs:element name="ImporteProvincia">
             <xs:annotation>
                  <xs:documentation>Importe asignado a una provincia</xs:documentation>
              </xs:annotation>
            <xs:complexType>
             <xs:attribute name="provincia" use="required">
                <xs:annotation>
                  <xs:documentation>Código de la provincia</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:length value="2"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
             <xs:attribute name="importe" use="required" type="xs:decimal">
             <xs:annotation>
                <xs:documentation>Importe asignado</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            </xs:complexType>
           </xs:element>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
        <xs:element name="RepartoComprometido" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Regionalización de lo comprometido</xs:documentation>
									</xs:annotation>
									<xs:complexType>
										<xs:sequence maxOccurs="unbounded">
											<xs:element name="ImporteProvincia">
												<xs:annotation>
													<xs:documentation>Importe asignado a una provincia</xs:documentation>
												</xs:annotation>
												<xs:complexType>
													<xs:attribute name="provincia" use="required">
														<xs:annotation>
															<xs:documentation>Código de la provincia</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:length value="2"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:attribute>
													<xs:attribute name="importe" type="xs:decimal" use="required">
														<xs:annotation>
															<xs:documentation>Importe asignado</xs:documentation>
														</xs:annotation>
													</xs:attribute>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
								<xs:element name="RepartoPrevision" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Regionalización de lo previsto para el ejercicio en curso</xs:documentation>
									</xs:annotation>
									<xs:complexType>
										<xs:sequence maxOccurs="unbounded">
											<xs:element name="ImporteProvincia">
												<xs:annotation>
													<xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
												</xs:annotation>
												<xs:complexType>
													<xs:attribute name="provincia" use="required">
														<xs:annotation>
															<xs:documentation>Código de la provincia</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:length value="2"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:attribute>
													<xs:attribute name="importe" type="xs:decimal" use="required">
														<xs:annotation>
															<xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
														</xs:annotation>
													</xs:attribute>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
								<xs:element name="RepartoAnualidad" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Regionalización del año del presupuesto</xs:documentation>
									</xs:annotation>
									<xs:complexType>
										<xs:sequence maxOccurs="unbounded">
											<xs:element name="ImporteProvincia">
												<xs:annotation>
													<xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
												</xs:annotation>
												<xs:complexType>
													<xs:attribute name="provincia" use="required">
														<xs:annotation>
															<xs:documentation>Código de la provincia</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:length value="2"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:attribute>
													<xs:attribute name="importe" type="xs:decimal" use="required">
														<xs:annotation>
															<xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
														</xs:annotation>
													</xs:attribute>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
								<xs:element name="RepartoAnualidadMas1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Regionalización del año siguiente al del presupuesto y subsiguientes
                  </xs:documentation>
									</xs:annotation>
									<xs:complexType>
										<xs:sequence maxOccurs="unbounded">
											<xs:element name="ImporteProvincia">
												<xs:annotation>
													<xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
												</xs:annotation>
												<xs:complexType>
													<xs:attribute name="provincia" use="required">
														<xs:annotation>
															<xs:documentation>Código de la provincia
                       </xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:length value="2"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:attribute>
													<xs:attribute name="importe" type="xs:decimal" use="required">
														<xs:annotation>
															<xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
														</xs:annotation>
													</xs:attribute>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
        <xs:element name="RepartoAnualidadMas2" minOccurs="0">
         <xs:annotation>
          <xs:documentation>
           Regionalización de dos años después al del presupuesto
          </xs:documentation>
         </xs:annotation>
         <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
           <xs:element name="ImporteProvincia">
            <xs:annotation>
             <xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
            </xs:annotation>
            <xs:complexType>
             <xs:attribute name="provincia" use="required">
              <xs:annotation>
               <xs:documentation>
                Código de la provincia
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="2"/>
                </xs:restriction>
              </xs:simpleType>
             </xs:attribute>
             <xs:attribute name="importe" use="required" type="xs:decimal">
              <xs:annotation>
               <xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
              </xs:annotation>
             </xs:attribute>
            </xs:complexType>
           </xs:element>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
        <xs:element name="RepartoAnualidadMas3" minOccurs="0">
         <xs:annotation>
          <xs:documentation>
           Regionalización de tres años después al del presupuesto
          </xs:documentation>
         </xs:annotation>
         <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
           <xs:element name="ImporteProvincia">
            <xs:annotation>
             <xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
            </xs:annotation>
            <xs:complexType>
             <xs:attribute name="provincia" use="required">
              <xs:annotation>
               <xs:documentation>
                Código de la provincia
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="2"/>
                </xs:restriction>
              </xs:simpleType>
             </xs:attribute>
             <xs:attribute name="importe" use="required" type="xs:decimal">
              <xs:annotation>
               <xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
              </xs:annotation>
             </xs:attribute>
            </xs:complexType>
           </xs:element>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
        <xs:element name="RepartoResto" minOccurs="0">
         <xs:annotation>
          <xs:documentation>
           Regionalización de cuatro años después al del presupuesto y
           siguientes
          </xs:documentation>
         </xs:annotation>
         <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
           <xs:element name="ImporteProvincia">
            <xs:annotation>
             <xs:documentation>
              Importe asignado a una provincia
             </xs:documentation>
            </xs:annotation>
            <xs:complexType>
             <xs:attribute name="provincia" use="required">
              <xs:annotation>
               <xs:documentation>
                Código de la provincia
               </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                <xs:length value="2"/>
                </xs:restriction>
              </xs:simpleType>
             </xs:attribute>
             <xs:attribute name="importe" use="required" type="xs:decimal">
              <xs:annotation>
               <xs:documentation>
                Importe asignado a la provincia
               </xs:documentation>
              </xs:annotation>
             </xs:attribute>
            </xs:complexType>
           </xs:element>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
       </xs:sequence>
							<xs:attribute name="idSociedad" type="xs:integer" use="required">
								<xs:annotation>
									<xs:documentation>Código de la sociedad (tres dígitos como máximo)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="numPr" type="xs:integer" use="required">
								<xs:annotation>
									<xs:documentation>Número del proyecto (cuatro dígitos)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="provincia" use="required">
								<xs:annotation>
									<xs:documentation>Código de la provincia (o grupo de provincias; dos dígitos)</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="2"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:attribute>
							<xs:attribute name="tipoInversion" type="TInversion" use="required">
								<xs:annotation>
									<xs:documentation>Singularidad (o no) del proyecto</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="tipoFinCom" type="TTipoProyFinUE" use="required">
								<xs:annotation>
									<xs:documentation>Tipo del proyecto según la financiación comunitaria</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="caracteristica" type="TCaracteristicaProy" use="required">
								<xs:annotation>
									<xs:documentation>Característica del proyecto</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="anyoinicio" type="xs:integer" use="required">
								<xs:annotation>
									<xs:documentation>Año de inicio (cuatro dígitos)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="anyofin" type="xs:integer" use="required">
								<xs:annotation>
									<xs:documentation>Año de fin (cuatro dígitos)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="material" type="TMaterialidad" use="required">
								<xs:annotation>
									<xs:documentation>Carácter material o no del proyecto</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="codObjetivo" type="xs:integer" use="optional">
								<xs:annotation>
									<xs:documentation>Código del objetivo en el que está encuadrada la actuación a la que pertenece el proyecto (dos dígitos)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="codActuacion" type="xs:integer" use="optional">
								<xs:annotation>
									<xs:documentation>Código de la actuación en la que está encuadrada el proyecto (dos dígitos)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="acumulado" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Inversión acumulada a 31/12 del año correspondiente al presupuesto - 3</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="comprometido" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Inversión real correspondiente al año del presupuesto - 2</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="prevision" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Inversión prevista para el año previo al del presupuesto</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="impan0" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Importe correspondiente al año del presupuesto</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="impan1" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Importe correspondiente al año del presupuesto + 1</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="impan2" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Importe correspondiente al año del presupuesto + 2</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="impan3" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Importe correspondiente al año del presupuesto + 3</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="resto" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Importe correspondiente a los años superiores al del presupuesto + 3</xs:documentation>
								</xs:annotation>
							</xs:attribute>
							<xs:attribute name="denominacion" use="required">
								<xs:annotation>
									<xs:documentation>Denominación del proyecto (150 caracteres)</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="500"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:attribute>
							<xs:attribute name="cofinanciacion" type="xs:decimal" use="optional">
								<xs:annotation>
									<xs:documentation>Porcentaje de cofinanciación del proyecto con la UE (numérico con dos decimales)</xs:documentation>
								</xs:annotation>
							</xs:attribute>
						</xs:complexType>
					</xs:element>
				</xs:sequence>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="TTipoProyFinUE">
		<xs:annotation>
			<xs:documentation>Tipo de proyecto según la financiación comunitaria</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="A">
				<xs:annotation>
					<xs:documentation>PRESENTADO EN LA CEE CON FINANCIACION FEOGA</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="B">
				<xs:annotation>
					<xs:documentation>SUSCEPTIBLE DE OBTENER FINANCIACION FEOGA</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="O">
				<xs:annotation>
					<xs:documentation>ORDINARIO</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Q">
				<xs:annotation>
					<xs:documentation>PRESENTADO EN LA CEE CON FINANCIACION FEDER</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="R">
				<xs:annotation>
					<xs:documentation>SUSCEPTIBLE DE OBTENER FINANCIACION FEDER</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Y">
				<xs:annotation>
					<xs:documentation>PRESENTADO EN LA CEE CON FINANCIACION I. FINANCIERO COHESION</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Z">
				<xs:annotation>
					<xs:documentation>SUSCEPTIBLE DE OBTENER FINANCIACION I. FINANCIERO COHESION</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TCaracteristicaProy">
		<xs:annotation>
			<xs:documentation>Característica del proyecto</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="A">
				<xs:annotation>
					<xs:documentation>ENTIDAD PROPIA</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="B">
				<xs:annotation>
					<xs:documentation>SIN ENTIDAD</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TInversion">
		<xs:annotation>
			<xs:documentation>Tipo de la inversión (singularidad)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="N">
				<xs:annotation>
					<xs:documentation>NO SINGULAR</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="S">
				<xs:annotation>
					<xs:documentation>SINGULAR</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TMaterialidad">
		<xs:annotation>
			<xs:documentation>Materialidad</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="V">
				<xs:annotation>
					<xs:documentation>MATERIAL</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="F">
				<xs:annotation>
					<xs:documentation>INMATERIAL</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
