<?xml version="1.0" encoding="UTF-8"?><!--Generated by Banca d'Italia M3-Meta Model Mapper v2.0-->
<xs:schema  xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message"
            xmlns:dsd="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific"
            xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common"            
            elementFormDefault="qualified" attributeFormDefault="unqualified"
            xmlns="http://www.bankitalia.it/sdmx/Anacredit/T2Q"
            targetNamespace="http://www.bankitalia.it/sdmx/Anacredit/T2Q"
>
<xs:import namespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" schemaLocation="sdmx/SDMXMessage.xsd"/>
<xs:import namespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" schemaLocation="sdmx/SDMXDataStructureSpecific.xsd"/>
<xs:import namespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" schemaLocation="sdmx/SDMXCommon.xsd"/>

	<xs:simpleType name="DIZ_SCHEMA_VERSION">
		<xs:restriction base="xs:string">
			 <xs:enumeration value="10"/>
		</xs:restriction>
	</xs:simpleType>
	
	
		<xs:simpleType name="ECBSDD_CRDT_QLTY_IMPRMNT_STTS_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="0"/>
 <xs:enumeration value="21"/>
 <xs:enumeration value="23"/>
 <xs:enumeration value="24"/>
 <xs:enumeration value="25"/>
 <xs:enumeration value="26"/>
 <xs:enumeration value="57"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_CRDT_QLTY_PRFRMNG_STTS_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="0"/>
 <xs:enumeration value="1"/>
 <xs:enumeration value="11"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="DATE_YYYY_MM_DD">
<xs:restriction base="xs:date">
<xs:pattern value=".{10}"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_RCGNTN_STTS_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="1"/>
 <xs:enumeration value="2"/>
 <xs:enumeration value="3"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="STRING_MAX_LENGTH_60">
<xs:restriction base="xs:string">
	 <xs:maxLength value="60"/>
<xs:pattern value="[A-Za-z0-9_ !&quot;#$%&amp;'()*+,\-./:;&lt;=&gt;?@\[\\\]\^`{|}~]+"/>
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="REGEX_STRING_MAXLEN_60">
	<xs:restriction base="xs:string">
		 <xs:maxLength value="60"/>
		 <xs:pattern value="[!-~]|([!-~][ -~]*[!-~])"/>
	</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="INTEGER_MAX_LENGTH_13">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
 <xs:maxInclusive value="9999999999999"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_PRDNTL_PRTFL_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="0"/>
 <xs:enumeration value="1"/>
 <xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_ACCNTNG_CLSSFCTN_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="0"/>
 <xs:enumeration value="10"/>
 <xs:enumeration value="12"/>
 <xs:enumeration value="13"/>
 <xs:enumeration value="14"/>
 <xs:enumeration value="15"/>
 <xs:enumeration value="2"/>
 <xs:enumeration value="3"/>
 <xs:enumeration value="4"/>
 <xs:enumeration value="41"/>
 <xs:enumeration value="45"/>
 <xs:enumeration value="46"/>
 <xs:enumeration value="47"/>
 <xs:enumeration value="48"/>
 <xs:enumeration value="5"/>
 <xs:enumeration value="6"/>
 <xs:enumeration value="7"/>
 <xs:enumeration value="8"/>
 <xs:enumeration value="9"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ANACREDIT_CUBEID">
<xs:restriction base="xs:string">
<xs:enumeration value="T2Q_ACCOUNTING"/>
<xs:enumeration value="T2Q_SEGN_NEG"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_IMPRMNT_ASSSSMNT_MTHD_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="0"/>
 <xs:enumeration value="1"/>
 <xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_FRBRNC_STTS_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="3"/>
 <xs:enumeration value="4"/>
 <xs:enumeration value="5"/>
 <xs:enumeration value="8"/>
 <xs:enumeration value="9"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="ECBSDD_SRC_ENCMBRNC_ANCRDT_CLLCTN">
<xs:restriction base="xs:integer">
 <xs:enumeration value="1"/>
 <xs:enumeration value="10"/>
 <xs:enumeration value="11"/>
 <xs:enumeration value="12"/>
 <xs:enumeration value="13"/>
 <xs:enumeration value="5"/>
 <xs:enumeration value="6"/>
 <xs:enumeration value="7"/>
 <xs:enumeration value="8"/>
 <xs:enumeration value="9"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="INTEGER_MAX_LENGTH_15">
<xs:restriction base="xs:integer">
<xs:minInclusive value="-999999999999999"/>
 <xs:maxInclusive value="999999999999999"/>
</xs:restriction>
</xs:simpleType>

		<xs:simpleType name="NNINTEGER_MAX_LENGTH_15">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
 <xs:maxInclusive value="999999999999999"/>
</xs:restriction>
</xs:simpleType>

	
	<xs:simpleType name="CL_SUBMISSION_TYPE">
	  <xs:restriction base="xs:string">
	   <xs:enumeration value="CHANGE">
		  <xs:annotation><xs:documentation xml:lang="en">Change</xs:documentation></xs:annotation>
	   </xs:enumeration>
	   <xs:enumeration value="FULL_DYNAMIC">
		  <xs:annotation><xs:documentation xml:lang="en">Full Dynamic</xs:documentation></xs:annotation>
	   </xs:enumeration>
	   <xs:enumeration value="FULL_REPLACEMENT">
		  <xs:annotation><xs:documentation xml:lang="en">Full Replacement</xs:documentation></xs:annotation>
	   </xs:enumeration>
	  </xs:restriction>
	</xs:simpleType>
	
	<xs:simpleType name="CL_SURVEY_T2Q">
	  <xs:restriction base="xs:string">
	   <xs:enumeration value="T2Q">
		  <xs:annotation><xs:documentation xml:lang="en">Survey T2Q</xs:documentation></xs:annotation>
	   </xs:enumeration>
	  </xs:restriction>
	</xs:simpleType>
	
<!-- Data Structure Definitions (DataSetType) -->
<xs:complexType name="ObsANCRDT_HDR_C">
  <xs:complexContent>
    <xs:restriction base="dsd:ObsType">
        <xs:sequence>
          <xs:element ref="common:Annotations" minOccurs="0"/>
        </xs:sequence>
		 
		<xs:attribute name="COD_OA" type="INTEGER_MAX_LENGTH_13" use="required" />

		<xs:attribute name="DT_RFRNC" type="DATE_YYYY_MM_DD" use="required" />
	
        <xs:attribute name="SRVY_ID" type="CL_SURVEY_T2Q" use="required"/>
        <xs:attribute name="SBMSSN_TYP" type="CL_SUBMISSION_TYPE" use="required"/>

        <xs:attribute name="type" type="common:IDType" use="prohibited"/>
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>
<xs:complexType name="ANCRDT_HDR_C">
  <xs:complexContent>
    <xs:restriction base="dsd:DataSetType">
        <xs:sequence>
            <xs:element ref="common:Annotations" minOccurs="0"/>
            <xs:element name="DataProvider" type="common:DataProviderReferenceType" form="unqualified" minOccurs="0"/>
            <xs:choice minOccurs="1">
                <xs:element name="Obs" type="ObsANCRDT_HDR_C" form="unqualified" maxOccurs="unbounded"/>
            </xs:choice>
        </xs:sequence>        
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>

<xs:complexType name="ObsANCRDT_ACCNTNG_C">
  <xs:complexContent>
    <xs:restriction base="dsd:ObsType">
        <xs:sequence>
          <xs:element ref="common:Annotations" minOccurs="0"/>
        </xs:sequence>
         		<xs:attribute name="DT_FRBRNC_STTS" type="DATE_YYYY_MM_DD"/>
		<xs:attribute name="FRBRNC_STTS" type="ECBSDD_FRBRNC_STTS_ANCRDT_CLLCTN" use="required" />
		<xs:attribute name="CNTRCT_ID" type="REGEX_STRING_MAXLEN_60" use="required" />
		<xs:attribute name="PRVSNS_OFF_BLNC_SHT" type="NNINTEGER_MAX_LENGTH_15"/>
		<xs:attribute name="IMPRMNT_STTS" type="ECBSDD_CRDT_QLTY_IMPRMNT_STTS_ANCRDT_CLLCTN"/>
		<xs:attribute name="RCGNTN_STTS" type="ECBSDD_RCGNTN_STTS_ANCRDT_CLLCTN" use="required" />
		<xs:attribute name="PRDNTL_PRTFL" type="ECBSDD_PRDNTL_PRTFL_ANCRDT_CLLCTN" />
		<xs:attribute name="INSTRMNT_ID" type="REGEX_STRING_MAXLEN_60" use="required" />
		<xs:attribute name="CMLTV_RCVRS_SNC_DFLT" type="NNINTEGER_MAX_LENGTH_15" use="required" />
		<xs:attribute name="ACCMLTD_WRTFFS" type="NNINTEGER_MAX_LENGTH_15" />
		<xs:attribute name="PRFRMNG_STTS" type="ECBSDD_CRDT_QLTY_PRFRMNG_STTS_ANCRDT_CLLCTN" />
		<xs:attribute name="IMPRMNT_ASSSSMNT_MTHD" type="ECBSDD_IMPRMNT_ASSSSMNT_MTHD_ANCRDT_CLLCTN"  />
		<xs:attribute name="ACCMLTD_IMPRMNT" type="INTEGER_MAX_LENGTH_15"  />
		<xs:attribute name="ACCNTNG_CLSSFCTN" type="ECBSDD_ACCNTNG_CLSSFCTN_ANCRDT_CLLCTN"  />
		<xs:attribute name="ACCMLTD_CHNGS_FV_CR" type="INTEGER_MAX_LENGTH_15"  />
		<xs:attribute name="DT_PRFRMNG_STTS" type="DATE_YYYY_MM_DD"  />
		<xs:attribute name="SRC_ENCMBRNC" type="ECBSDD_SRC_ENCMBRNC_ANCRDT_CLLCTN"  />
		<xs:attribute name="CRRYNG_AMNT" type="INTEGER_MAX_LENGTH_15" />
		
        <xs:attribute name="type" type="common:IDType" use="prohibited"/>
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>
<xs:complexType name="ANCRDT_ACCNTNG_C">
  <xs:complexContent>
    <xs:restriction base="dsd:DataSetType">
        <xs:sequence>
            <xs:element ref="common:Annotations" minOccurs="0"/>
            <xs:element name="DataProvider" type="common:DataProviderReferenceType" form="unqualified" minOccurs="0"/>
            <xs:choice minOccurs="0">
                <xs:element name="Obs" type="ObsANCRDT_ACCNTNG_C" form="unqualified" maxOccurs="unbounded"/>
            </xs:choice>
        </xs:sequence>
        <xs:attribute name="CUBEID" type="ANACREDIT_CUBEID" use="required"/>
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>

<xs:complexType name="ObsANCRDT_NODATA_C">
  <xs:complexContent>
    <xs:restriction base="dsd:ObsType">
        <xs:sequence>
          <xs:element ref="common:Annotations" minOccurs="0"/>
        </xs:sequence>        		
				<xs:attribute name="IMPORTO" type="INTEGER_MAX_LENGTH_15" use="required" />
				
        <xs:attribute name="type" type="common:IDType" use="prohibited"/>
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>
<xs:complexType name="ANCRDT_NODATA_C">
  <xs:complexContent>
    <xs:restriction base="dsd:DataSetType">
        <xs:sequence>
            <xs:element ref="common:Annotations" minOccurs="0"/>
            <xs:element name="DataProvider" type="common:DataProviderReferenceType" form="unqualified" minOccurs="0"/>
            <xs:choice minOccurs="1">
                <xs:element name="Obs" type="ObsANCRDT_NODATA_C" form="unqualified" minOccurs="1" maxOccurs="1"/>
            </xs:choice>
        </xs:sequence>
		<xs:attribute name="CUBEID" type="ANACREDIT_CUBEID" use="required"/>
        <xs:attribute name="REPORTING_YEAR_START_DAY" type="xs:gMonthDay" use="prohibited"/>
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>

</xs:schema>
