<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:simpleType name="DOCTYPEID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор типа документа в системе электронного документооборота"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="30"/>
			<xs:pattern value="[A-Z,0-9,_,//,А-Я]{1,25}"/>    
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DOCNO_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Уникальный учетный номер документа в системе ЭДО"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="30"/>
			<xs:pattern value="[A-Z,0-9,//]{1,30}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ReportMode_Type">
		<xs:annotation>
			<xs:documentation>
                            FULL - полный Список ЦБ
                            CHANGE- перечень изменений в Список ЦБ, рассылается в дату вступления в силу Изменения в Список ЦБ или в дату опубликования Изменения в Список ЦБ
                        </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="FULL"/>
			<xs:enumeration value="CHANGE"/>
		</xs:restriction>
	</xs:simpleType>
        
	<xs:simpleType name="SENDERID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор фирмы отправителя/получателя ЭДО"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="7"/>
			<xs:minLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SENDERNAME_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Краткое наименование отправителя"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="120"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="REMARKS_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Примечание к документу"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="200"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RECNO_Type">
		<xs:annotation>
			<xs:documentation>Тип "Номер записи"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="11"/>
		</xs:restriction>
	</xs:simpleType>
        

   <xs:complexType name="DOC_REQUISITES_Type">
		<xs:annotation>
			<xs:documentation>Реквизиты документа в системе электронного документооборота</xs:documentation>
		</xs:annotation>
		<xs:attribute name="DOC_DATE" type="xs:date" use="required"> 

	<!--Дата формирования документа-->
	</xs:attribute>
	<xs:attribute name="DOC_TIME" type="xs:time" use="required">
		<!--Время формирования документа-->
	</xs:attribute>
	<xs:attribute name="DOC_NO" type="DOCNO_Type" use="required">
		<!--Уникальный учетный номер документа-->
	</xs:attribute>
	<xs:attribute name="DOC_TYPE_ID" type="DOCTYPEID_Type"  use="optional">
		<!--Идентификатор типа документа-->
	</xs:attribute>
	<xs:attribute name="SENDER_ID" type="SENDERID_Type" use="required">
		<!--Идентификатор фирмы-отправителя документа-->
	</xs:attribute>
	<xs:attribute name="SENDER_NAME" type="SENDERNAME_Type" default="ОАО Отправитель" use="optional">
		<!--Краткое наименование отправителя-->
	</xs:attribute>
	<xs:attribute name="RECEIVER_ID" type="SENDERID_Type" use="required">
		<!--Код ЭДО РТС получателя -->
	</xs:attribute>
	<xs:attribute name="REMARKS" type="REMARKS_Type" use="optional">
		<!--Текст примечания к документу-->
	</xs:attribute>
	</xs:complexType>

        
 <xs:element name="RTS_DOC">
		<xs:complexType>
			<xs:sequence>
          <xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
          <xs:element name="MFB30" type="MFB30Type"/>
			</xs:sequence>
		</xs:complexType>
</xs:element>
  
  <xs:complexType name="ValueType">
    <xs:sequence>
      <xs:element type="xs:string" name="Value" minOccurs="1" />
      <xs:element type="xs:string" name="OldValue"  minOccurs="0"  />
      <xs:element type="xs:date" name="EffectiveDate"  minOccurs="0" />
    </xs:sequence>
  </xs:complexType>  
  
  <xs:complexType name="SecurityDataModeType">
    <xs:sequence>
      <xs:element type="xs:string" name="Value" minOccurs="1" />
      <xs:element type="ValueType" name="ChangeEmitent"  minOccurs="0"  />      
    </xs:sequence>
  </xs:complexType>    
  
  <xs:complexType name="UNDERLYINGType">
    <xs:sequence>
      <xs:element type="ValueType" name="UnderlyingBaseSecurityID" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingISIN" minOccurs="1"/>
      <xs:element type="ValueType" name="UnderlyingCFI" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingCFI2" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingStateRegNumber" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingStateRegNumberDate" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingIssuerName" minOccurs="1"/>
      <xs:element type="ValueType" name="UnderlyingIssuerFullName" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingCountry" minOccurs="1"/>
      <xs:element type="ValueType" name="UnderlyingTaxNumber" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingINN" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingKPP" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingOGRN" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingFaceValueStatus" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingFaceValue" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingFaceValueCurrency" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorClass" minOccurs="1"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorClassName" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorEconomicsSectorCode1" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorEconomicsSectorCode1Name" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorEconomicsSectorCode2" minOccurs="0"/>
      <xs:element type="ValueType" name="UnderlyingRegulatorEconomicsSectorCode2Name" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <!-- LISTINGT   -->
  <xs:complexType name="LISTINGType">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute type="xs:string" name="ExchangeListingStatus" use="optional"/>
        <xs:attribute type="xs:date" name="ExchangeListingIncludeDate" use="optional"/>
        <xs:attribute type="xs:date" name="ExchangeListingExcludeDate" use="optional"/>
        <xs:attribute type="xs:string" name="ListingName" use="optional"/>
        <xs:attribute type="xs:string" name="ListingSector" use="optional"/>
        <xs:attribute type="xs:string" name="TradingStatus" use="required"/>
        <xs:attribute type="xs:date" name="TradeStartDate" use="optional"/>
        <xs:attribute type="xs:date" name="TradeStopDate" use="optional"/>
        <xs:attribute type="xs:string" name="ClearingGuaranteeStatus" use="required"/>
        <xs:attribute type="xs:date" name="ClearingGuaranteeStartDate" use="optional"/>
        <xs:attribute type="xs:date" name="ClearingGuaranteeStopDate" use="optional"/>
        <xs:attribute type="xs:string" name="ClearingObligationStatus" use="required"/>
        <xs:attribute type="xs:date" name="ClearingObligationStartDate" use="optional"/>
        <xs:attribute type="xs:date" name="ClearingObligationStopDate" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  
  <xs:complexType name="BOND_DATAType">
    <xs:sequence>
      <xs:element type="ValueType" name="IssueDate"/>
      <xs:element type="ValueType" name="MaturityDate"/>
      <xs:element type="ValueType" name="LongShortTerm"/>
    </xs:sequence>
  </xs:complexType>  
  
  <xs:complexType name="SECURITYType">
    <xs:sequence>
      <xs:element type="SecurityDataModeType" name="SecurityDataMode" minOccurs="1"/>
      <xs:element type="ValueType" name="SecuritySubType" minOccurs="0"/>
      <xs:element type="ValueType" name="SecurityClass" minOccurs="0"/>
      <xs:element type="ValueType" name="SecurityFullType" minOccurs="1"/>
      <xs:element type="ValueType" name="ReceiptType" minOccurs="0"/>
      <xs:element type="ValueType" name="Symbol" minOccurs="1"/>
      <xs:element type="ValueType" name="SecurityISIN" minOccurs="1"/>
      <xs:element type="ValueType" name="CFI" minOccurs="0"/>
      <xs:element type="ValueType" name="CFI2" minOccurs="0"/>
      <xs:element type="ValueType" name="StateRegNumber" minOccurs="0"/>
      <xs:element type="ValueType" name="StateRegNumberDate" minOccurs="0"/>
      <xs:element type="ValueType" name="IssueVolume" minOccurs="0"/>
      <xs:element type="ValueType" name="VolumeOutstanding" minOccurs="0"/>
      <xs:element type="ValueType" name="VolumeOutstandingDate"/>
      <xs:element type="ValueType" name="FaceValueStatus" minOccurs="1"/>
      <xs:element type="ValueType" name="FaceValue" minOccurs="1"/>
      <xs:element type="ValueType" name="FaceValueCurrency"/>
      <xs:element type="ValueType" name="RegulatorClass" minOccurs="1"/>
      <xs:element type="ValueType" name="RegulatorClassName" minOccurs="1"/>
      <xs:element type="ValueType" name="Qualified" minOccurs="0"/>
      <xs:element type="ValueType" name="UnitFundName" minOccurs="0"/>
      <xs:element type="BOND_DATAType" name="BOND_DATA" minOccurs="0" maxOccurs="1"/>
      <xs:element type="UNDERLYINGType" name="UNDERLYING" minOccurs="0" maxOccurs="1"/>
      <xs:element type="LISTINGType" name="LISTING" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
    <xs:attribute type="xs:integer" name="SecurityID" use="required"/>
  </xs:complexType>
  
  
  <xs:complexType name="SECTYPEType">
    <xs:sequence>
      <xs:element type="SECURITYType" name="SECURITY" minOccurs="1" maxOccurs="unbounded" />
    </xs:sequence>
    <xs:attribute type="xs:string" name="SecurityType" use="required"/>
    <xs:attribute type="xs:string" name="SecurityTypeName" use="required"/>
  </xs:complexType>
  <xs:complexType name="ISSUERType">
    <xs:sequence>
      <xs:element type="ValueType" name="IssuerName" minOccurs="1"/>
      <xs:element type="ValueType" name="IssuerFullName" minOccurs="1"/>
      <xs:element type="ValueType" name="IssuerTaxNumber" />
      <xs:element type="ValueType" name="IssuerINN"/>
      <xs:element type="ValueType" name="KPP"/>
      <xs:element type="ValueType" name="OGRN"/>
      <xs:element type="ValueType" name="IssuerCountry"/>
      <xs:element type="ValueType" name="IssuerAddress"/>
      <xs:element type="ValueType" name="IssuerAddressCity"/>
      <xs:element type="ValueType" name="NonResidentEconomicsSectorCode1"/>
      <xs:element type="ValueType" name="NonResidentEconomicsSectorCode1Name"/>
      <xs:element type="ValueType" name="NonResidentEconomicsSectorCode2"/>
      <xs:element type="ValueType" name="NonResidentEconomicsSectorCode2Name"/>
      <xs:element type="SECTYPEType" name="SECTYPE"/>
    </xs:sequence>
     <xs:attribute type="xs:integer" name="IssuerID" use="required"/>
  </xs:complexType>
    <xs:simpleType name="SectionCode_Type">
            <xs:annotation>
                    <xs:documentation>
                        Идентификатор группы инструментов
                        EQF - ИЦБ
                        EQR - РЦБ
                        OTC - Внебиржевые ЦБ
                    </xs:documentation>
            </xs:annotation>
            <xs:restriction base="xs:string">
                    <xs:enumeration value="EQF"/>
                    <xs:enumeration value="EQR"/>
                    <xs:enumeration value="OTC"/>
            </xs:restriction>
    </xs:simpleType>
  
  <xs:complexType name="SECTIONType">
    <xs:sequence>
      <xs:element type="ISSUERType" name="ISSUER"  minOccurs="1" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute type="SectionCode_Type" name="SectionCode" use="required"/>
    <xs:attribute type="xs:string" name="SectionName" use="required"/>
  </xs:complexType>
  <xs:complexType name="MFB30Type">
    <xs:sequence>
      <xs:element type="SECTIONType" name="SECTION" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute type="xs:date"   name="ReportDate"/>
    <xs:attribute type="xs:string" name="ReportDesc"/>
    <xs:attribute type="xs:string" name="ReportVersion"/>
    <xs:attribute type="ReportMode_Type" name="ReportMode" use="required"/>
  </xs:complexType>
</xs:schema>
