<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">	<xsd:include schemaLocation="http://e-deklaracje.mf.gov.pl/Repozytorium/Definicje/ElementarneTypyDanych_v2-0.xsd"/>	<!--Adres-->	<xsd:complexType name="TAdres">		<xsd:annotation>			<xsd:documentation>Dane określające adres</xsd:documentation>		</xsd:annotation>		<xsd:choice>			<xsd:sequence>				<xsd:element name="AdresPol" type="TAdresPolski"/>			</xsd:sequence>			<xsd:sequence>				<xsd:element name="AdresZagr" type="TAdresZagraniczny"/>			</xsd:sequence>		</xsd:choice>	</xsd:complexType>	<xsd:complexType name="TAdresPolski">		<xsd:annotation>			<xsd:documentation>Informacje opisujące adres polski</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="KodKraju" type="TKodKraju" fixed="PL">				<xsd:annotation>					<xsd:documentation>Kraj</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Wojewodztwo" type="TJednAdmin">				<xsd:annotation>					<xsd:documentation>Województwo</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Powiat" type="TJednAdmin">				<xsd:annotation>					<xsd:documentation>Powiat</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Gmina" type="TJednAdmin">				<xsd:annotation>					<xsd:documentation>Gmina</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Ulica" type="TUlica" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Nazwa ulicy</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NrDomu" type="TNrBudynku">				<xsd:annotation>					<xsd:documentation>Numer budynku</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NrLokalu" type="TNrLokalu" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer lokalu</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Miejscowosc" type="TMiejscowosc">				<xsd:annotation>					<xsd:documentation>Nazwa miejscowości</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="KodPocztowy" type="TKodPocztowy">				<xsd:annotation>					<xsd:documentation>Kod pocztowy</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Poczta" type="TMiejscowosc">				<xsd:annotation>					<xsd:documentation>Nazwa urzędu pocztowego</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TAdresZagraniczny">		<xsd:annotation>			<xsd:documentation>Informacje opisujące adres zagraniczny</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="KodKraju">				<xsd:annotation>					<xsd:documentation>Kod Kraju [Country Code]</xsd:documentation>				</xsd:annotation>				<xsd:simpleType>					<xsd:restriction base="TKodKraju">						<xsd:pattern value="P[A-KM-Z]"/>						<xsd:pattern value="[A-OQ-Z][A-Z]"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="KodPocztowy" type="TKodPocztowy" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Kod pocztowy [Postal code]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Miejscowosc" type="TMiejscowosc">				<xsd:annotation>					<xsd:documentation>Nazwa miejscowości [City]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Ulica" type="TUlica" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Nazwa ulicy [Street]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NrDomu" type="TNrBudynku" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer budynku [Building number]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NrLokalu" type="TNrLokalu" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer lokalu [Flat number]</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<!--Identyfikatory-->	<xsd:complexType name="TIdentyfikatorOsobyFizycznej">		<xsd:annotation>			<xsd:documentation>Podstawowy zestaw danych identyfikacyjnych o osobie fizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NIP" type="TNrNIP">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP)</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImiePierwsze" type="TImie">				<xsd:annotation>					<xsd:documentation>Pierwsze imię</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Nazwisko" type="TNazwisko">				<xsd:annotation>					<xsd:documentation>Nazwisko</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="DataUrodzenia" type="TData">				<xsd:annotation>					<xsd:documentation>Data urodzenia</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="PESEL" type="TNrPESEL" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer PESEL</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TIdentyfikatorOsobyFizycznejPelny">		<xsd:annotation>			<xsd:documentation>Pełny zestaw danych identyfikacyjnych o osobie fizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NIP" type="TNrNIP" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP)</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImiePierwsze" type="TImie">				<xsd:annotation>					<xsd:documentation>Pierwsze imię</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Nazwisko" type="TNazwisko">				<xsd:annotation>					<xsd:documentation>Nazwisko</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="DataUrodzenia" type="TData">				<xsd:annotation>					<xsd:documentation>Data urodzenia</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImieOjca" type="TImie">				<xsd:annotation>					<xsd:documentation>Imię ojca</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImieMatki" type="TImie">				<xsd:annotation>					<xsd:documentation>Imię matki</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="PESEL" type="TNrPESEL">				<xsd:annotation>					<xsd:documentation>Numer PESEL</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TIdentyfikatorOsobyFizycznejZagranicznej">		<xsd:annotation>			<xsd:documentation>Zestaw danych identyfikacyjnych dla osoby fizycznej zagranicznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="ImiePierwsze" type="TImie">				<xsd:annotation>					<xsd:documentation>Imię pierwsze [First name]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="Nazwisko" type="TNazwisko">				<xsd:annotation>					<xsd:documentation>Nazwisko [Family name]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="DataUrodzenia" type="TData">				<xsd:annotation>					<xsd:documentation>Data urodzenia [Date of Birth]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="MiejsceUrodzenia" type="TMiejscowosc">				<xsd:annotation>					<xsd:documentation>Miejsce urodzenia [Place of Birth]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImieOjca" type="TImie" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Imię ojca [Father’s name]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="ImieMatki" type="TImie" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Imię matki [Mother’s name]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="NIP" type="TNrNIP" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP) [Tax Identification Number (NIP)]</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TIdentyfikatorOsobyNiefizycznej">		<xsd:annotation>			<xsd:documentation>Podstawowy zestaw danych identyfikacyjnych o osobie niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NIP" type="TNrNIP">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP)</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="PelnaNazwa" type="TZnakowy">				<xsd:annotation>					<xsd:documentation>Pełna nazwa</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="REGON" type="TNrREGON" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer REGON</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TIdentyfikatorOsobyNiefizycznejPelny">		<xsd:annotation>			<xsd:documentation>Pełny zestaw danych identyfikacyjnych o osobie niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="NIP" type="TNrNIP" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP)</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="PelnaNazwa" type="TZnakowy">				<xsd:annotation>					<xsd:documentation>Pełna nazwa</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="SkroconaNazwa">				<xsd:annotation>					<xsd:documentation>Skrócona nazwa</xsd:documentation>				</xsd:annotation>				<xsd:simpleType>					<xsd:restriction base="TZnakowy">						<xsd:maxLength value="70"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="REGON" type="TNrREGON">				<xsd:annotation>					<xsd:documentation>Numer REGON</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TIdentyfikatorOsobyNiefizycznejZagranicznej">		<xsd:annotation>			<xsd:documentation>Zestaw danych identyfikacyjnych dla osoby niefizycznej zagranicznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="PelnaNazwa" type="TZnakowy">				<xsd:annotation>					<xsd:documentation>Pełna nazwa [Name]</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="SkroconaNazwa" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Nazwa skrócona [Short Name]</xsd:documentation>				</xsd:annotation>				<xsd:simpleType>					<xsd:restriction base="TZnakowy">						<xsd:maxLength value="70"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="NIP" type="TNrNIP" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Numer Identyfikacji Podatkowej (NIP) [Tax Identification Number (NIP)]</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<!--Dane podstawowe bez adresu (Do załączników)-->	<xsd:complexType name="TPodmiotDowolnyBezAdresu">		<xsd:annotation>			<xsd:documentation>Skrócony zestaw danych o osobie fizycznej lub niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:choice>			<xsd:element name="OsobaFizyczna" type="TIdentyfikatorOsobyFizycznej"/>			<xsd:element name="OsobaNiefizyczna" type="TIdentyfikatorOsobyNiefizycznej"/>		</xsd:choice>	</xsd:complexType>	<!--Dane podstawowe z adresem-->	<xsd:complexType name="TOsobaFizyczna">		<xsd:annotation>			<xsd:documentation>Podstawowy zestaw danych o osobie fizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="OsobaFizyczna" type="TIdentyfikatorOsobyFizycznej"/>			<xsd:element name="AdresZamieszkania">				<xsd:complexType>					<xsd:complexContent>						<xsd:extension base="TAdres">							<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>						</xsd:extension>					</xsd:complexContent>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TOsobaNiefizyczna">		<xsd:annotation>			<xsd:documentation>Podstawowy zestaw danych o osobie niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="OsobaNiefizyczna" type="TIdentyfikatorOsobyNiefizycznej"/>			<xsd:element name="AdresSiedziby">				<xsd:complexType>					<xsd:complexContent>						<xsd:extension base="TAdres">							<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>						</xsd:extension>					</xsd:complexContent>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TPodmiotDowolny">		<xsd:annotation>			<xsd:documentation>Podstawowy zestaw danych o osobie fizycznej lub niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:complexContent>			<xsd:extension base="TPodmiotDowolnyBezAdresu">				<xsd:sequence>					<xsd:element name="AdresZamieszkaniaSiedziby">						<xsd:complexType>							<xsd:complexContent>								<xsd:extension base="TAdres">									<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>								</xsd:extension>							</xsd:complexContent>						</xsd:complexType>					</xsd:element>				</xsd:sequence>			</xsd:extension>		</xsd:complexContent>	</xsd:complexType>	<!--Dane pełne z adresem (NIP opcjonalny)-->	<xsd:complexType name="TOsobaFizycznaPelna">		<xsd:annotation>			<xsd:documentation>Pełny zestaw danych o osobie fizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="OsobaFizyczna" type="TIdentyfikatorOsobyFizycznejPelny"/>			<xsd:element name="AdresZamieszkania">				<xsd:complexType>					<xsd:complexContent>						<xsd:extension base="TAdres">							<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>						</xsd:extension>					</xsd:complexContent>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TOsobaNiefizycznaPelna">		<xsd:annotation>			<xsd:documentation>Pełny zestaw danych o osobie fizycznej lub niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="OsobaNiefizyczna" type="TIdentyfikatorOsobyNiefizycznejPelny"/>			<xsd:element name="AdresSiedziby">				<xsd:complexType>					<xsd:complexContent>						<xsd:extension base="TAdres">							<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>						</xsd:extension>					</xsd:complexContent>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="TPodmiotDowolnyPelny">		<xsd:annotation>			<xsd:documentation>Pełny zestaw danych o osobie fizycznej lub niefizycznej</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:choice>				<xsd:element name="OsobaFizyczna" type="TIdentyfikatorOsobyFizycznejPelny"/>				<xsd:element name="OsobaNiefizyczna" type="TIdentyfikatorOsobyNiefizycznejPelny"/>			</xsd:choice>			<xsd:element name="AdresZamieszkaniaSiedziby">				<xsd:complexType>					<xsd:complexContent>						<xsd:extension base="TAdres">							<xsd:attribute name="rodzajAdresu" type="xsd:string" use="required" fixed="RAD"/>						</xsd:extension>					</xsd:complexContent>				</xsd:complexType>			</xsd:element>		</xsd:sequence>	</xsd:complexType></xsd:schema>