<?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:simpleType name="TRADENO_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Номер сделки/заявки/отчета в торговой системе"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_BOARDID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Код, присвоенный режиму торгов"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_SECURITYID_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="SB_USERID_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="SB_SETTLECODE_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="SB_VOLUME_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Объем, позиция, 18.2"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="Float18.2_Type"/>
	</xs:simpleType>
	<xs:simpleType name="SB_PRICE_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Цена, ставка, 16.6"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="7"/>
			<xs:totalDigits value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_QUANTITY_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Количество, 20 знаков"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_SESSION_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Номер сессии"</xs:documentation>
			<xs:documentation>Значения:</xs:documentation>
			<xs:documentation>1 – утренняя</xs:documentation>
			<xs:documentation>2 – дневная</xs:documentation>
			<xs:documentation>3 и т.д. - вечерние</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="1"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_DEPO_PART_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Раздел счета ДЕПО"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="B"/>
			<xs:enumeration value="Q"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_FUND_CODE_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="SB_OPER_TYPE_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вид операции 'D'-списание, 'K'-зачисление"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="1"/>
			<xs:minLength value="0"/>
			<xs:enumeration value="D"/>
			<xs:enumeration value="K"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_BUYSELL_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вид сделки 'B'-покупка, 'S'-продажа"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="B"/>
			<xs:enumeration value="S"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_TRADE_PERIOD_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Период торгов"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="C"/>
			<xs:enumeration value="N"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_SECURITY_TYPE_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Правило торгов ("M"-КГО-ОФЗ,"Q"-ОБР,"T"-Еврооблигации,"Z"-Облигации субъектов федерации)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="M"/>
			<xs:enumeration value="Q"/>
			<xs:enumeration value="T"/>
			<xs:enumeration value="Z"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_EXEC_TYPE_Type">
		<xs:annotation>
			<xs:documentation>Тип:"Тип исполнения/неисполнения (1 - исполнение/неисполнения сделки с кодом расчетов Sn и первой части сделки РЕПО, 2 - исполнение/неисполнения 2-ой части сделки РЕПО)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="1"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_REASON_Type">
		<xs:annotation>
			<xs:documentation>Тип:"Код причины неисполнения сделки(1-Участник не ввел заявку-поручение, 2-Контрагент не ввел заявку-поручение, 3-Участник и Контрагент не ввели заявки-поручение)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="1"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="YES_NO_Type">
		<xs:annotation>
			<xs:documentation>Тип: " "Y"-YES, "N"-NO"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="Y"/>
			<xs:enumeration value="N"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRDACCID_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="CURRENCYID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор вылюты"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CLIENT_CODE_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="BROKERREF_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Дополнительная справочная информация"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Float18.2_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вещественное число 18.2"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="2"/>
			<xs:totalDigits value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Float16.4_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вещественное число 16.4"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="4"/>
			<xs:totalDigits value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Integer11.0_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Целое число 11.0"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="0"/>
			<xs:totalDigits value="11"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRMID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор фирмы"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<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:minLength value="0"/>
			<xs:maxLength value="30"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRMNAME_LONG_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Hаименование фирмы"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="120"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Integer11_Type">
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="0"/>
			<xs:totalDigits value="11"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SB_ORDERSTATUS_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Статус заявки"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="1"/>
		</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>
	<xs:element name="MICEX_DOC">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="DOC_REQUISITES"/>
				<xs:element ref="SEM42" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
	<xs:element name="SEM42">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="USER" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="TradeDate" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Дата торгов</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TradeSessionDate" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Дата торгов</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Weekday" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">День недели  для даты торгов</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="MainFirmId" type="FIRMID_Type" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Идентификатор головной фирмы</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="FirmName" type="FIRMNAME_LONG_Type" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Наименование головной фирмы</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="FirmINN" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">ИНН головной фирмы</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="12"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="USER">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="RECORDS" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="UserId" type="SB_USERID_Type" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Идентификатор пользователя</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="RECORDS">
		<xs:complexType>
			<xs:attribute name="RecNo" type="Integer11.0_Type" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Номер по порядку</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TransNo" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Уникальный код заявки (номер транзакции из реестра транзакций), допустимо совпадение с номером заявки в реестре заявок</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="20"/>
						<xs:fractionDigits value="0"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="EntryTime" type="xs:time" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Вресмя фиксации заявки в Системе торгов</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Status" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Статус заявки (Y - зарегистрирована в Системе торгов, N - не зарегистрирована в Системе торгов)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="BuySell" type="SB_BUYSELL_Type" use="required"/>
			<xs:attribute name="BoardId" type="SB_BOARDID_Type" use="required"/>
			<xs:attribute name="SecurityId" type="SB_SECURITYID_Type" use="required"/>
			<xs:attribute name="Price" type="SB_PRICE_Type" use="optional"/>
			<xs:attribute name="Quantity" type="SB_QUANTITY_Type" use="optional"/>
			<xs:attribute name="LotSize" type="SB_QUANTITY_Type" use="required"/>
			<xs:attribute name="CurrencyId" type="CURRENCYID_Type" use="required"/>
			<xs:attribute name="ClientCode" type="CLIENT_CODE_Type" use="optional"/>
			<xs:attribute name="TrdAccId" type="TRDACCID_Type" use="required"/>
			<xs:attribute name="BrokerRef" type="BROKERREF_Type" use="optional"/>
			<xs:attribute name="MMOrder" type="YES_NO_Type" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Заявка маркет-мейкера</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="MisType" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Причина отказа в регистрации заявки в Системе торгов</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="256"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Message" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="RUS">Текст сообщения из транслога</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="1024"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="AlgoOrderNo" type="TRADENO_Type" use="optional"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
