<?xml version="1.0" encoding="windows-1251"?><!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by VI (GNIVC FNS RF) --><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:usch="http://www.unisoftware.ru/schematron-extensions" xmlns:sql="urn:schemas-microsoft-com:mapping-schema" elementFormDefault="qualified" attributeFormDefault="unqualified">	<xs:element name="Файл">		<xs:annotation>			<!---*******************************************************************************************************************************************************************************-->			<xs:appinfo>				<sch:pattern name="Проверка имени файла на соответствие значению атрибута @ИдФайл">					<sch:rule context="Файл">						<!--  Проверка имени файла на соответствие ИдФайл  -->						<sch:assert test="usch:getFileName() = @ИдФайл">							<usch:error code="0400400007" path="@ИдФайл" value-of-select="@ИдФайл" doc-id-path="usch:getFileName()" doc-id-caption="Файл">Имя файла обмена "<usch:value-of select="usch:getFileName()"/>" не совпадает со значением элемента ИдФайл "<usch:value-of select="@ИдФайл"/>"</usch:error>						</sch:assert>					</sch:rule>				</sch:pattern>			</xs:appinfo>			<!---*******************************************************************************************************************************************************************************-->			<xs:documentation>Файл обмена</xs:documentation>		</xs:annotation>		<xs:complexType>			<xs:sequence>				<xs:element name="СвРекв">					<xs:annotation>						<xs:documentation>Сведения о реквизитах, по которым сформирован файл обмена</xs:documentation>					</xs:annotation>					<xs:complexType>						<xs:choice>							<xs:element name="СвЮЛ">								<xs:annotation>									<xs:documentation>Сведения об организации</xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:attribute name="ИННЮЛ" type="ИННЮЛТип" use="required">										<xs:annotation>											<xs:documentation>ИНН организации</xs:documentation>										</xs:annotation>									</xs:attribute>									<xs:attribute name="КПП" type="КППТип" use="required">										<xs:annotation>											<xs:documentation>КПП</xs:documentation>										</xs:annotation>									</xs:attribute>								</xs:complexType>							</xs:element>							<xs:element name="СвФЛ">								<xs:annotation>									<xs:documentation>Сведения о физическом лице</xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:attribute name="ИННФЛ" type="ИННФЛТип" use="required">										<xs:annotation>											<xs:documentation>ИНН физического лица</xs:documentation>										</xs:annotation>									</xs:attribute>								</xs:complexType>							</xs:element>						</xs:choice>						<xs:attribute name="ОКТМО" type="ОКТМОТип" use="required">							<xs:annotation>								<xs:documentation>Код по ОКТМО</xs:documentation>							</xs:annotation>						</xs:attribute>						<xs:attribute name="ОтчетГод" type="xs:gYear" use="required">							<xs:annotation>								<xs:documentation>Отчетный год</xs:documentation>								<xs:documentation>Год в формате ГГГГ</xs:documentation>							</xs:annotation>						</xs:attribute>						<xs:attribute name="ПризнакФ" use="required">							<xs:annotation>								<xs:documentation>Признак документа, по которому сформирован файл обмена</xs:documentation>							</xs:annotation>							<xs:simpleType>								<xs:restriction base="xs:string">									<xs:length value="1"/>									<xs:enumeration value="1"/>									<xs:enumeration value="2"/>								</xs:restriction>							</xs:simpleType>						</xs:attribute>					</xs:complexType>				</xs:element>				<xs:element name="Документ" maxOccurs="3000">					<xs:annotation>						<!---*********************************************************************************************************************************************************-->						<xs:appinfo>							<sch:pattern name="Присутствие сведений о доходах физического лица">								<sch:rule context="Документ">									<!-- Табл.4.5. Контроль обязательности присутствия Сведений о доходах физического лица (СведДох) в зависимости от значения Номера корректировки (НомКорр) -->									<sch:assert test="usch:iif(@НомКорр!=99, count(СведДох)!=0, (count(СведДох)!=0 or count(СведДох)=0))">										<usch:error code="0400300003" path="СведДох" value-of-select="count(СведДох)">Не выполнено условие присутствия (отсутствия) элемента Файл/Документ/СведДох при значении элемента НомКорр, равном "<usch:value-of select="@НомКорр"/>".</usch:error>									</sch:assert>								</sch:rule>							</sch:pattern>						</xs:appinfo>						<!---*********************************************************************************************************************************************************-->						<xs:documentation>Справка о доходах физического лица (форма 2-НДФЛ)</xs:documentation>					</xs:annotation>					<xs:complexType>						<xs:sequence>							<xs:element name="Подписант">								<xs:annotation>									<!---*********************************************************************************************************************************************************-->									<xs:appinfo>										<sch:pattern name="Присутствие сведений о представителе">											<sch:rule context="Подписант">												<!-- Табл.4.8. Контроль  обязательности  присутствия  Сведений  о  представителе  налогоплательщика  в  зависимости  от  значения  ПрПодп  -->												<sch:assert test="usch:iif(@ПрПодп=2, count(СвПред)!=0, (count(СвПред)!=0 or count(СвПред)=0))">													<usch:error code="0400300003" path="СвПред" value-of-select="count(СвПред)">Не выполнено условие присутствия (отсутствия) элемента Файл/Документ/Подписант/СвПред при значении элемента ПрПодп, равном "<usch:value-of select="@ПрПодп"/>".</usch:error>												</sch:assert>											</sch:rule>										</sch:pattern>									</xs:appinfo>									<!---*********************************************************************************************************************************************************-->									<xs:documentation>Сведения о лице, подписавшем документ</xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:sequence>										<xs:element name="ФИО" type="ФИОТип" minOccurs="0">											<xs:annotation>												<xs:documentation>Фамилия, имя, отчество</xs:documentation>											</xs:annotation>										</xs:element>										<xs:element name="СвПред" minOccurs="0">											<xs:annotation>												<xs:documentation>Сведения об уполномоченном представителе</xs:documentation>												<xs:documentation><![CDATA[Элемент обязателен при <ПрПодп>=2]]></xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:attribute name="НаимДок" use="required">													<xs:annotation>														<xs:documentation>Наименование документа, подтверждающего полномочия представителя</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:string">															<xs:minLength value="1"/>															<xs:maxLength value="120"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НаимОрг" use="optional">													<xs:annotation>														<xs:documentation>Наименование организации - уполномоченного представителя</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:string">															<xs:minLength value="1"/>															<xs:maxLength value="1000"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>											</xs:complexType>										</xs:element>									</xs:sequence>									<xs:attribute name="ПрПодп" use="required">										<xs:annotation>											<xs:documentation>Признак лица, подписавшего документ</xs:documentation>											<xs:documentation>Принимает значение:1 – налогоплательщик, налоговый агент   |2 – представитель налогоплательщика, налогового агента</xs:documentation>										</xs:annotation>										<xs:simpleType>											<xs:restriction base="xs:string">												<xs:length value="1"/>												<xs:enumeration value="1"/>												<xs:enumeration value="2"/>											</xs:restriction>										</xs:simpleType>									</xs:attribute>								</xs:complexType>							</xs:element>							<xs:element name="СвНА">								<xs:annotation>									<xs:documentation>Данные о налоговом агенте </xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:choice>										<xs:element name="СвНАЮЛ">											<xs:annotation>												<xs:documentation>Сведения о налоговом агенте - организации</xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:attribute name="НаимОрг" use="required">													<xs:annotation>														<xs:documentation>Наименование организации</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:string">															<xs:minLength value="1"/>															<xs:maxLength value="1000"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="ИННЮЛ" type="ИННЮЛТип" use="required">													<xs:annotation>														<xs:documentation>ИНН организации</xs:documentation>													</xs:annotation>												</xs:attribute>												<xs:attribute name="КПП" type="КППТип" use="required">													<xs:annotation>														<xs:documentation>КПП</xs:documentation>													</xs:annotation>												</xs:attribute>											</xs:complexType>										</xs:element>										<xs:element name="СвНАФЛ">											<xs:annotation>												<xs:documentation>Сведения о налоговом агенте - физическом лице</xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:sequence>													<xs:element name="ФИО" type="ФИОТип">														<xs:annotation>															<xs:documentation>Фамилия, имя, отчество физического лица</xs:documentation>														</xs:annotation>													</xs:element>												</xs:sequence>												<xs:attribute name="ИННФЛ" type="ИННФЛТип" use="required">													<xs:annotation>														<xs:documentation>ИНН физического лица</xs:documentation>													</xs:annotation>												</xs:attribute>											</xs:complexType>										</xs:element>									</xs:choice>									<xs:attribute name="ОКТМО" type="ОКТМОТип" use="required">										<xs:annotation>											<xs:documentation>Код по ОКТМО</xs:documentation>										</xs:annotation>									</xs:attribute>									<xs:attribute name="Тлф" use="optional">										<xs:annotation>											<xs:documentation>Телефон</xs:documentation>										</xs:annotation>										<xs:simpleType>											<xs:restriction base="xs:string">												<xs:minLength value="1"/>												<xs:maxLength value="20"/>											</xs:restriction>										</xs:simpleType>									</xs:attribute>								</xs:complexType>							</xs:element>							<xs:element name="ПолучДох">								<xs:annotation>									<xs:documentation>Данные о физическом лице - получателе дохода</xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:sequence>										<xs:element name="ФИО" type="ФИОТип">											<xs:annotation>												<xs:documentation>Фамилия, имя, отчество</xs:documentation>											</xs:annotation>										</xs:element>										<xs:element name="УдЛичнФЛ">											<xs:annotation>												<xs:documentation>Сведения о документе, удостоверяющем личность </xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:attribute name="КодУдЛичн" use="required">													<xs:annotation>														<xs:documentation>Код документа, удостоверяющего личность </xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="СПДУЛТип"/>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="СерНомДок" use="required">													<xs:annotation>														<xs:documentation>Серия и номер документа, удостоверяющего личность </xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:string">															<xs:minLength value="1"/>															<xs:maxLength value="25"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>											</xs:complexType>										</xs:element>										<xs:element name="АдрМЖРФ" type="АдрРФТип" minOccurs="0">											<xs:annotation>												<xs:documentation>Адрес места жительства в Российской Федерации</xs:documentation>											</xs:annotation>										</xs:element>										<xs:element name="АдрИНО" type="АдрИноТип" minOccurs="0">											<xs:annotation>												<xs:documentation>Адрес за пределами Российской Федерации</xs:documentation>											</xs:annotation>										</xs:element>									</xs:sequence>									<xs:attribute name="ИННФЛ" type="ИННФЛТип" use="optional">										<xs:annotation>											<xs:documentation>ИНН в Российской Федерации</xs:documentation>										</xs:annotation>									</xs:attribute>									<xs:attribute name="ИННИно" use="optional">										<xs:annotation>											<xs:documentation>ИНН в стране гражданства</xs:documentation>										</xs:annotation>										<xs:simpleType>											<xs:restriction base="xs:string">												<xs:minLength value="1"/>												<xs:maxLength value="50"/>											</xs:restriction>										</xs:simpleType>									</xs:attribute>									<xs:attribute name="Статус" use="required">										<xs:annotation>											<xs:documentation>Статус налогоплательщика</xs:documentation>										</xs:annotation>										<xs:simpleType>											<xs:restriction base="xs:string">												<xs:length value="1"/>												<xs:enumeration value="1"/>												<xs:enumeration value="2"/>												<xs:enumeration value="3"/>												<xs:enumeration value="4"/>												<xs:enumeration value="5"/>												<xs:enumeration value="6"/>											</xs:restriction>										</xs:simpleType>									</xs:attribute>									<xs:attribute name="ДатаРожд" type="ДатаТип" use="required">										<xs:annotation>											<xs:documentation>Дата рождения</xs:documentation>										</xs:annotation>									</xs:attribute>									<xs:attribute name="Гражд" type="ОКСМТип" use="required">										<xs:annotation>											<xs:documentation>Гражданство (код страны)</xs:documentation>										</xs:annotation>									</xs:attribute>								</xs:complexType>							</xs:element>							<xs:element name="СведДох" minOccurs="0" maxOccurs="unbounded">								<xs:annotation>									<!---*********************************************************************************************************************************************************-->									<xs:appinfo>										<sch:pattern name="Присутствие Доходов, облагаемых по ставке">											<sch:rule context="СведДох">												<!-- Табл.4.5. Контроль обязательности присутствия Доходов, облагаемых по ставке (ДохВыч) в зависимости от значения Номера корректировки (НомКорр) -->												<sch:assert test="usch:iif(../@НомКорр!=99  , count(ДохВыч)!=0, (count(ДохВыч)!=0 or count(ДохВыч)=0))">													<usch:error code="0400300003" path="ДохВыч" value-of-select="count(ДохВыч)">Не выполнено условие присутствия (отсутствия) элемента Файл/Документ/СведДох/ДохВыч при значении элемента НомКорр, равном "<usch:value-of select="../@НомКорр"/>".</usch:error>												</sch:assert>											</sch:rule>										</sch:pattern>									</xs:appinfo>									<!---*********************************************************************************************************************************************************-->									<!---*********************************************************************************************************************************************************-->									<xs:appinfo>										<sch:pattern name="Присутствие Общих сумм дохода и налога">											<sch:rule context="СведДох">												<!-- Табл.4.5. Контроль обязательности присутствия Общих сумм дохода и налога (СумИтНалПер) в зависимости от значения Номера корректировки (НомКорр) -->												<sch:assert test="usch:iif(../@НомКорр!=99  , count(СумИтНалПер)!=0, (count(СумИтНалПер)!=0 or count(СумИтНалПер)=0))">													<usch:error code="0400300003" path="СумИтНалПер" value-of-select="count(СумИтНалПер)!=0">Не выполнено условие присутствия (отсутствия) элемента Файл/Документ/СведДох/СумИтНалПер при значении элемента НомКорр, равном "<usch:value-of select="../@НомКорр"/>".</usch:error>												</sch:assert>											</sch:rule>										</sch:pattern>									</xs:appinfo>									<!---*********************************************************************************************************************************************************-->									<xs:documentation>Сведения о доходах физического лица</xs:documentation>								</xs:annotation>								<xs:complexType>									<xs:sequence>										<xs:element name="ДохВыч" minOccurs="0">											<xs:annotation>												<xs:documentation>Доходы, облагаемые по ставке</xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:sequence>													<xs:element name="СвСумДох" maxOccurs="unbounded">														<xs:annotation>															<xs:documentation>Доходы, облагаемые по ставке (по месяцу и коду дохода)</xs:documentation>														</xs:annotation>														<xs:complexType>															<xs:sequence>																<xs:element name="СвСумВыч" type="СведВыч" minOccurs="0" maxOccurs="unbounded">																	<xs:annotation>																		<xs:documentation>Сведения о вычетах</xs:documentation>																	</xs:annotation>																</xs:element>															</xs:sequence>															<xs:attribute name="Месяц" use="required">																<xs:annotation>																	<xs:documentation>Месяц</xs:documentation>																</xs:annotation>																<xs:simpleType>																	<xs:restriction base="xs:string">																		<xs:length value="2"/>																		<xs:enumeration value="01"/>																		<xs:enumeration value="02"/>																		<xs:enumeration value="03"/>																		<xs:enumeration value="04"/>																		<xs:enumeration value="05"/>																		<xs:enumeration value="06"/>																		<xs:enumeration value="07"/>																		<xs:enumeration value="08"/>																		<xs:enumeration value="09"/>																		<xs:enumeration value="10"/>																		<xs:enumeration value="11"/>																		<xs:enumeration value="12"/>																	</xs:restriction>																</xs:simpleType>															</xs:attribute>															<xs:attribute name="КодДоход" use="required">																<xs:annotation>																	<xs:documentation>Код дохода</xs:documentation>																</xs:annotation>																<xs:simpleType>																	<xs:restriction base="xs:integer">																		<xs:totalDigits value="4"/>																	</xs:restriction>																</xs:simpleType>															</xs:attribute>															<xs:attribute name="СумДоход" use="required">																<xs:annotation>																	<xs:documentation>Сумма дохода</xs:documentation>																</xs:annotation>																<xs:simpleType>																	<xs:restriction base="xs:decimal">																		<xs:totalDigits value="17"/>																		<xs:fractionDigits value="2"/>																	</xs:restriction>																</xs:simpleType>															</xs:attribute>														</xs:complexType>													</xs:element>												</xs:sequence>											</xs:complexType>										</xs:element>										<xs:element name="НалВычССИ" minOccurs="0">											<xs:annotation>												<xs:documentation>Стандартные, социальные, инвестиционные и имущественные налоговые вычеты</xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:sequence>													<xs:element name="ПредВычССИ" type="СведВыч" maxOccurs="unbounded">														<xs:annotation>															<xs:documentation>Суммы предоставленных налогоплательщику налоговых вычетов</xs:documentation>														</xs:annotation>													</xs:element>													<xs:element name="УведСоцВыч" type="УведВычТип" minOccurs="0" maxOccurs="unbounded">														<xs:annotation>															<xs:documentation>Сведения об уведомлении, подтверждающем право на социальный налоговый вычет</xs:documentation>														</xs:annotation>													</xs:element>													<xs:element name="УведИмущВыч" type="УведВычТип" minOccurs="0" maxOccurs="unbounded">														<xs:annotation>															<xs:documentation>Сведения об уведомлении, подтверждающем право на имущественный налоговый вычет</xs:documentation>														</xs:annotation>													</xs:element>												</xs:sequence>											</xs:complexType>										</xs:element>										<xs:element name="СумИтНалПер" minOccurs="0">											<xs:annotation>												<xs:documentation>Общие суммы дохода и налога</xs:documentation>											</xs:annotation>											<xs:complexType>												<xs:sequence>													<xs:element name="УведФиксПлат" type="УведВычТип" minOccurs="0">														<xs:annotation>															<xs:documentation>Сведения об уведомлении, подтверждающем право на уменьшение налога на фиксированные авансовые платежи</xs:documentation>														</xs:annotation>													</xs:element>												</xs:sequence>												<xs:attribute name="СумДохОбщ" use="required">													<xs:annotation>														<xs:documentation>Общая сумма дохода</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="17"/>															<xs:fractionDigits value="2"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалБаза" use="required">													<xs:annotation>														<xs:documentation>Налоговая база</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="17"/>															<xs:fractionDigits value="2"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалИсчисл" use="required">													<xs:annotation>														<xs:documentation>Сумма налога исчисленная</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="АвансПлатФикс" use="required">													<xs:annotation>														<xs:documentation>Сумма фиксированных авансовых платежей</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалУдерж" use="required">													<xs:annotation>														<xs:documentation>Сумма налога удержанная</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалПеречисл" use="required">													<xs:annotation>														<xs:documentation>Сумма налога перечисленная</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалУдержЛиш" use="required">													<xs:annotation>														<xs:documentation>Сумма налога, излишне удержанная налоговым агентом</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>												<xs:attribute name="НалНеУдерж" use="required">													<xs:annotation>														<xs:documentation>Сумма налога, не удержанная налоговым агентом</xs:documentation>													</xs:annotation>													<xs:simpleType>														<xs:restriction base="xs:decimal">															<xs:totalDigits value="15"/>															<xs:fractionDigits value="0"/>														</xs:restriction>													</xs:simpleType>												</xs:attribute>											</xs:complexType>										</xs:element>									</xs:sequence>									<xs:attribute name="Ставка" use="required">										<xs:annotation>											<xs:documentation>Ставка, по которой облагаются доходы</xs:documentation>										</xs:annotation>										<xs:simpleType>											<xs:restriction base="xs:integer">												<xs:totalDigits value="2"/>											</xs:restriction>										</xs:simpleType>									</xs:attribute>								</xs:complexType>							</xs:element>						</xs:sequence>						<xs:attribute name="КНД" use="required">							<xs:annotation>								<xs:documentation>Код формы по КНД</xs:documentation>							</xs:annotation>							<xs:simpleType>								<xs:restriction base="КНДТип">									<xs:enumeration value="1151078"/>								</xs:restriction>							</xs:simpleType>						</xs:attribute>						<xs:attribute name="ДатаДок" type="ДатаТип" use="required">							<xs:annotation>								<xs:documentation>Дата формирования документа</xs:documentation>								<xs:documentation>Дата в формате ДД.ММ.ГГГГ</xs:documentation>							</xs:annotation>						</xs:attribute>						<xs:attribute name="НомСпр" use="required">							<xs:annotation>								<xs:documentation>Номер справки</xs:documentation>							</xs:annotation>							<xs:simpleType>								<xs:restriction base="xs:integer">									<xs:totalDigits value="10"/>								</xs:restriction>							</xs:simpleType>						</xs:attribute>						<xs:attribute name="ОтчетГод" type="xs:gYear" use="required">							<xs:annotation>								<xs:documentation>Отчетный год</xs:documentation>								<xs:documentation>Год в формате ГГГГ</xs:documentation>							</xs:annotation>						</xs:attribute>						<xs:attribute name="Признак" use="required">							<xs:annotation>								<xs:documentation>Признак</xs:documentation>							</xs:annotation>							<xs:simpleType>								<xs:restriction base="xs:string">									<xs:length value="1"/>									<xs:enumeration value="1"/>									<xs:enumeration value="2"/>								</xs:restriction>							</xs:simpleType>						</xs:attribute>						<xs:attribute name="НомКорр" use="required">							<xs:annotation>								<xs:documentation>Номер корректировки</xs:documentation>							</xs:annotation>							<xs:simpleType>								<xs:restriction base="xs:string">									<xs:length value="2"/>									<xs:pattern value="[0-9]{2}"/>								</xs:restriction>							</xs:simpleType>						</xs:attribute>						<xs:attribute name="КодНО" type="СОНОТип" use="required">							<xs:annotation>								<xs:documentation>Код налогового органа, в который представляется справка</xs:documentation>							</xs:annotation>						</xs:attribute>					</xs:complexType>				</xs:element>			</xs:sequence>			<xs:attribute name="ИдФайл" use="required">				<xs:annotation>					<xs:documentation>Идентификатор файла</xs:documentation>					<xs:documentation>Содержит (повторяет) имя сформированного файла (без расширения)</xs:documentation>				</xs:annotation>				<xs:simpleType>					<xs:restriction base="xs:string">						<xs:minLength value="1"/>						<xs:maxLength value="255"/>					</xs:restriction>				</xs:simpleType>			</xs:attribute>			<xs:attribute name="ВерсПрог" use="required">				<xs:annotation>					<xs:documentation>Версия программы, с помощью которой сформирован файл</xs:documentation>				</xs:annotation>				<xs:simpleType>					<xs:restriction base="xs:string">						<xs:maxLength value="40"/>						<xs:minLength value="1"/>					</xs:restriction>				</xs:simpleType>			</xs:attribute>			<xs:attribute name="ВерсФорм" use="required">				<xs:annotation>					<xs:documentation>Версия формата</xs:documentation>				</xs:annotation>				<xs:simpleType>					<xs:restriction base="xs:string">						<xs:minLength value="1"/>						<xs:maxLength value="5"/>						<xs:enumeration value="5.04"/>					</xs:restriction>				</xs:simpleType>			</xs:attribute>		</xs:complexType>	</xs:element>	<xs:complexType name="СведВыч">		<xs:annotation>			<xs:documentation>Сведения о вычетах</xs:documentation>		</xs:annotation>		<xs:attribute name="КодВычет" use="required">			<xs:annotation>				<xs:documentation>Код вычета</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:integer">					<xs:totalDigits value="3"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="СумВычет" use="required">			<xs:annotation>				<xs:documentation>Сумма вычета</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:decimal">					<xs:totalDigits value="17"/>					<xs:fractionDigits value="2"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>	</xs:complexType>	<xs:complexType name="УведВычТип">		<xs:annotation>			<xs:documentation>Сведения об уведомлении, подтверждающем право на социальный, имущественный налоговые вычеты и на уменьшение налога на фиксированные авансовые платежи </xs:documentation>		</xs:annotation>		<xs:attribute name="НомерУвед" use="required">			<xs:annotation>				<xs:documentation>Номер уведомления</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="20"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="ДатаУвед" type="ДатаТип" use="required">			<xs:annotation>				<xs:documentation>Дата выдачи уведомления</xs:documentation>			</xs:annotation>		</xs:attribute>		<xs:attribute name="ИФНСУвед" type="СОНОТип" use="required">			<xs:annotation>				<xs:documentation>Код налогового органа, выдавшего уведомление</xs:documentation>			</xs:annotation>		</xs:attribute>	</xs:complexType>	<xs:complexType name="АдрИноТип">		<xs:annotation>			<xs:documentation>Адрес за пределами Российской Федерации</xs:documentation>		</xs:annotation>		<xs:attribute name="КодСтр" type="ОКСМТип" use="required">			<xs:annotation>				<xs:documentation>Код страны проживания</xs:documentation>			</xs:annotation>		</xs:attribute>		<xs:attribute name="АдрТекст" use="required">			<xs:annotation>				<xs:documentation>Адрес</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="255"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>	</xs:complexType>	<xs:complexType name="АдрРФТип">		<xs:annotation>			<xs:documentation>Адрес в Российской Федерации </xs:documentation>		</xs:annotation>		<xs:attribute name="Индекс" use="optional">			<xs:annotation>				<xs:documentation>Индекс</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:length value="6"/>					<xs:pattern value="[0-9]{6}"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="КодРегион" use="required">			<xs:annotation>				<xs:documentation>Код субъекта</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="CCРФТип"/>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Район" use="optional">			<xs:annotation>				<xs:documentation>Район</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="50"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Город" use="optional">			<xs:annotation>				<xs:documentation>Город</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:maxLength value="50"/>					<xs:minLength value="1"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="НаселПункт" use="optional">			<xs:annotation>				<xs:documentation>Населенный пункт (село, поселок)</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="50"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Улица" use="optional">			<xs:annotation>				<xs:documentation>Улица (проспект, переулок)</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="50"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Дом" use="optional">			<xs:annotation>				<xs:documentation>Номер дома (владения)</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="20"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Корпус" use="optional">			<xs:annotation>				<xs:documentation>Номер корпуса (строения)</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="20"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Кварт" use="optional">			<xs:annotation>				<xs:documentation>Номер квартиры</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="20"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>	</xs:complexType>	<xs:complexType name="ФИОТип">		<xs:annotation>			<xs:documentation>Фамилия, имя, отчество</xs:documentation>		</xs:annotation>		<xs:attribute name="Фамилия" use="required">			<xs:annotation>				<xs:documentation>Фамилия</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="60"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Имя" use="required">			<xs:annotation>				<xs:documentation>Имя</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="60"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>		<xs:attribute name="Отчество" use="optional">			<xs:annotation>				<xs:documentation>Отчество</xs:documentation>			</xs:annotation>			<xs:simpleType>				<xs:restriction base="xs:string">					<xs:minLength value="1"/>					<xs:maxLength value="60"/>				</xs:restriction>			</xs:simpleType>		</xs:attribute>	</xs:complexType>	<xs:simpleType name="ИННФЛТип">		<xs:annotation>			<xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="12"/>			<xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{10}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="ИННЮЛТип">		<xs:annotation>			<xs:documentation>Идентификационный номер налогоплательщика - организации</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="10"/>			<xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{8}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="КППТип">		<xs:annotation>			<xs:documentation>Код причины постановки на учет (КПП) - 5 и 6 знаки от 0-9 и A-Z</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="9"/>			<xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{2})([0-9A-Z]{2})([0-9]{3})"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="КНДТип">		<xs:annotation>			<xs:documentation>Код из Классификатора налоговой документации</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="7"/>			<xs:pattern value="[0-9]{7}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="СОНОТип">		<xs:annotation>			<xs:documentation>Коды из Классификатора системы обозначений налоговых органов</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="4"/>			<xs:pattern value="[0-9]{4}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="ОКСМТип">		<xs:annotation>			<xs:documentation>Код из Общероссийского классификатора стран мира</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="3"/>			<xs:pattern value="[0-9]{3}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="ОКТМОТип">		<xs:annotation>			<xs:documentation>Код из Общероссийского классификатора территорий муниципальных образований</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:minLength value="8"/>			<xs:maxLength value="11"/>			<xs:pattern value="[0-9]{8}"/>			<xs:pattern value="[0-9]{11}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="CCРФТип">		<xs:annotation>			<xs:documentation>Код из Справочника субъекта Российской Федерации </xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="2"/>			<xs:pattern value="[0-9]{2}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="СПДУЛТип">		<xs:annotation>			<xs:documentation>Коды Справочника видов документов, удостоверяющих личность налогоплательщика</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="2"/>			<xs:pattern value="[0-9]{2}"/>		</xs:restriction>	</xs:simpleType>	<xs:simpleType name="ДатаТип">		<xs:annotation>			<xs:documentation>Дата в формате ДД.ММ.ГГГГ (01.01.1900 - 31.12.2099)</xs:documentation>		</xs:annotation>		<xs:restriction base="xs:string">			<xs:length value="10"/>			<xs:pattern value="(((0[1-9]{1}|[1-2]{1}[0-9]{1})\.(0[1-9]{1}|1[0-2]{1}))|((30)\.(01|0[3-9]{1}|1[0-2]{1}))|((31)\.(01|03|05|07|08|10|12)))\.(19[0-9]{2}|20[0-9]{2})"/>		</xs:restriction>	</xs:simpleType></xs:schema>