<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- edited with XMLSpy v2018 rel. 2 sp1 (http://www.altova.com) by Gorokhov Dmitry (JSC Moscow Exchange) -->
<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="1"/>
			<xs:maxLength value="12"/>
			<xs:pattern value="[A-Z,0-9,_,//,А-Я]{1,12}"/>
		</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="1"/>
			<xs:maxLength value="12"/>
			<xs:pattern value="[A-Z,0-9,//]{1,12}"/>
		</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="12"/>
			<xs:minLength value="1"/>
		</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="1"/>
			<xs:maxLength value="30"/>
		</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="1"/>
			<xs:maxLength value="120"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="DOC_REQUISITES_Type">
		<xs:annotation>
			<xs:documentation xml:lang="RUS">Реквизиты документа в системе электронного документооборота</xs:documentation>
			<xs:documentation xml:lang="ENG">Document metadata</xs:documentation>
		</xs:annotation>
		<xs:attribute name="DOC_DATE" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Дата формирования файла</xs:documentation>
				<xs:documentation xml:lang="ENG">Date of the document</xs:documentation>
			</xs:annotation>
			<!--Дата формирования документа-->
		</xs:attribute>
		<xs:attribute name="DOC_TIME" type="xs:time" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Время формирования файла</xs:documentation>
				<xs:documentation xml:lang="ENG">File generation time</xs:documentation>
			</xs:annotation>
			<!--Время формирования документа-->
		</xs:attribute>
		<xs:attribute name="DOC_NO" type="DOCNO_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Уникальный учетный номер документа в системе электронного документооборота</xs:documentation>
				<xs:documentation xml:lang="ENG">Document unique number in the electronic document exchange system</xs:documentation>
			</xs:annotation>
			<!--Уникальный учетный номер документа-->
		</xs:attribute>
		<xs:attribute name="DOC_TYPE_ID" type="DOCTYPEID_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Идентификатор типа документа в системе электронного документооборота</xs:documentation>
				<xs:documentation xml:lang="ENG">Document type ID in the electronic document exchange system</xs:documentation>
			</xs:annotation>
			<!--Идентификатор типа документа-->
		</xs:attribute>
		<xs:attribute name="SENDER_ID" type="SENDERID_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Идентификатор отправителя</xs:documentation>
				<xs:documentation xml:lang="ENG">Sender ID</xs:documentation>
			</xs:annotation>
			<!--Идентификатор фирмы-отправителя документа-->
		</xs:attribute>
		<xs:attribute name="SENDER_NAME" type="SENDERNAME_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Краткое наименование отправителя</xs:documentation>
				<xs:documentation xml:lang="ENG">Sender short name</xs:documentation>
			</xs:annotation>
			<!--Наименование (краткое) организатора системы электронного документооборота-->
		</xs:attribute>
		<xs:attribute name="RECEIVER_ID" type="SENDERID_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Идентификатор получателя</xs:documentation>
				<xs:documentation xml:lang="ENG">Recipient ID</xs:documentation>
			</xs:annotation>
			<!--Идентификатор фирмы-получателя документа-->
		</xs:attribute>
		<xs:attribute name="REMARKS" type="REMARKS_Type" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Текст примечания к файлу</xs:documentation>
				<xs:documentation xml:lang="ENG">Additional remarks</xs:documentation>
			</xs:annotation>
			<!--Примечание к документу-->
		</xs:attribute>
		<xs:attribute name="SIGNAUTHOR" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">ФИО автора ЭЦП</xs:documentation>
				<xs:documentation xml:lang="ENG">Name of the electronic signature author</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<!-- Simple types for data validation -->
	<xs:simpleType name="FirmId_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор фирмы"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FirmName_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Наименование организации"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="30"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Inn_Type">
		<xs:annotation>
			<xs:documentation>Тип: "ИНН организации"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Bic_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Номер БИК кредитной организации"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="9"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TraderCode_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор организации в торговой системе биржи"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Complex type for organization info -->
	<xs:complexType name="KO_INFO_Type">
		<xs:sequence>
			<!-- Trader deposit information -->
			<xs:element name="KO_TRADER_DEPOSIT_INFO" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:attribute name="MMVB_Trader_Code_Deposit" type="TraderCode_Type" use="optional">
						<xs:annotation>
							<xs:documentation xml:lang="RUS">Торговый идентификатор трейдера организации на рынке Депозитов</xs:documentation>
						</xs:annotation>
					</xs:attribute>
				</xs:complexType>
			</xs:element>
			<!-- Trader repo information -->
			<xs:element name="KO_TRADER_REPO_INFO" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:attribute name="MMVB_Trader_Code_Repo" type="TraderCode_Type" use="optional">
						<xs:annotation>
							<xs:documentation xml:lang="RUS">Торговый идентификатор трейдера организации на рынке РЕПО и займов</xs:documentation>
						</xs:annotation>
					</xs:attribute>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="Name" type="FirmName_Type" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Наименование организации</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="INN" type="Inn_Type" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">ИНН организации</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="BIC" type="Bic_Type" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Номер БИК кредитной организации</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="MMVB_Firm_Code" type="FirmId_Type" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="RUS">Идентификатор организации в торговой системе биржи</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<!-- Organization attributes -->
	</xs:complexType>
	<!-- Main root element -->
	<xs:element name="MICEX_DOC">
		<xs:complexType>
			<xs:sequence>
				<!-- Document requisites block -->
				<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
				<!-- Organization information elements -->
				<xs:element name="KO_INFO" type="KO_INFO_Type" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation xml:lang="RUS">Элемент, описывающий организацию</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
