<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:sch0="http://nfse.abrasf.org.br" xmlns:sch1="http://ws.pc.gif.com.br/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://nfse.abrasf.org.br" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://nfse.abrasf.org.br">
  <wsdl:types>
    <xs:schema xmlns="http://nfse.abrasf.org.br" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://nfse.abrasf.org.br">
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

	<!-- definition of simple elements -->
	<xs:simpleType name="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:nonNegativeInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoVerificacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[a-zA-Z0-9]{1,9}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsStatusRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Situacao do RPS (
                1 - Normal; 
                2 - Cancelado)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsStatusNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Situacao do RPS (
                1 - Normal; 
                2 - Cancelada)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsExigibilidadeISS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Exigibilidade do ISS da NFS-e (
                1 - Exigivel; 
                2 - Nao incidencia; 
                3 - Isencao; 
                4 - Exportacao; 
                5 - Imunidade; 
                6 - Exigibilidade Suspensa por Decisao Judicial; 
                7 - Exigibilidade Suspensa por Processo Administrativo)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2|3|4|5|6|7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNumeroProcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsRegimeEspecialTributacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Exigibilidade do ISS da NFS-e (
                1 - Microempresa Municipal; 
                2 - Estimativa; 
                3 - Sociedade de Profissionais; 
                4 - Cooperativa; 
                5 - Microempresario Individual (MEI); 
                6 - Microempresario e Empresa de Pequeno Porte (ME EPP))
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2|3|4|5|6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Sim ou Nao (
                1 - Sim; 
                2 - Nao)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsResponsavelRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Responsavel pela retencao do ISSQN (
                1 - Tomador; 
                2 - Intermediario)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:nonNegativeInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxInclusive value="999999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNumeroRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:nonNegativeInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsSerieRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsTipoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo do RPS (
                1 - Recibo Provisorio de Servicos;
                2 - RPS Nota Fiscal Conjugada (Mista); 
                3 - Cupom)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2|3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsOutrasInformacoes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:fractionDigits fixed="true" value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsItemListaServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Codigo da Lista de Servicos LC 116/2003</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="02.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.16" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.17" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.18" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.19" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.21" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.22" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04.23" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="05.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="06.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="06.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="06.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="06.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="06.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.16" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.17" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.18" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.19" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.21" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="07.22" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="08.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="08.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="09.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="09.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="09.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="10.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="11.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="11.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="11.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="11.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.16" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="12.17" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="13.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="13.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="13.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="13.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="14.14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.16" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.17" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="15.18" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="16.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="16.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.16" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.17" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.18" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.19" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.21" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.22" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.23" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="17.24" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="18.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="19.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="20.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="20.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="20.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="21.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="22.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="23.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="24.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="25.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="25.02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="25.03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="25.04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="26.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="27.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="28.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="29.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="30.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="31.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="32.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="33.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="34.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="35.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="36.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="37.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="38.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="39.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="40.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="99.01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoCnae" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoTributacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoNbs" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:fractionDigits value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsDiscriminacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="2000" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsRazaoSocial" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNomeFantasia" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length fixed="true" value="14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="40" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="125" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="10" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsUf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">UF (
                AC - Acre;
                AL - Alagoas;
                AM - Amazonas;
                AP - Amapa;
                BA - Bahia;
                CE - Ceara;
                DF - Distrito Federal;
                ES - Espirito Santo;
                GO - Goias;
                MA - Maranhao;
                MG - Minas Gerais;
                MS - Mato Grosso do Sul;
                MT - Mato Grosso;
                PA - Para;
                PB - Paraiba;
                PE - Pernambuco;
                PI - Piaui;
                PR - Parana;
                RJ - Rio de Janeiro;
                RN - Rio Grande do Norte;
                RO - Rondonia;
                RR - Roraima;
                RS - Rio Grande do Sul;
                SC - Santa Catarina;
                SE - Sergipe;
                SP - Sao Paulo;
                TO - Tocantins)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length fixed="true" value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AL" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AM" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="BA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="CE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="DF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="ES" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="GO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MT" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PB" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PI" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PR" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RJ" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RN" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RR" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="TO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="EX" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoPaisBacen" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>

	</xs:simpleType>
	<xs:simpleType name="tsCep" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="80" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length fixed="true" value="11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoObra" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoDoCadastroImobiliarioBrasileiro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoVinculacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsArt" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNumeroLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:nonNegativeInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:totalDigits value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsNumeroProtocolo" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsSituacaoLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2|3|4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsQuantidadeRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsDescricaoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="200" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodigoCancelamentoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Codigo do Cancelamento da NFS-e (
                1 - Erro na emissao;
                2 - Servico nao prestado;
                3 - Erro de assinatura;
                4 - Duplicidade da nota;
                5 - Erro de processamento)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="1|2|3|4|5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsChaveNotaNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsCodTribNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
        <xs:simpleType name="tsCodTribMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="tsVersao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-9]{1}[0-9]{0,1}\.[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para chave de acesso de uma NFSe Nacional  -->
	<xs:simpleType name="tsChaveAcessoNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para chave de acesso Nacional  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSTipoCST" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          Código de Situação Tributária do PIS/COFINS (CST):
          00 - Nenhum;
          01 - Operação Tributável com Alíquota Básica;
          02 - Operação Tributável com Alíquota Diferenciada;
          03 - Operação Tributável com Alíquota por Unidade de Medida de Produto;
          04 - Operação Tributável monofásica - Revenda a Alíquota Zero;
          05 - Operação Tributável por Substituição Tributária;
          06 - Operação Tributável a Alíquota Zero;
          07 - Operação Isenta da Contribuição;
          08 - Operação sem Incidência da Contribuição;
          09 - Operação com Suspensão da Contribuição;
          49 - Outras Operações de Saída;
          50 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Tributada no Mercado Interno;
          51 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno;
          52 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita de Exportação;
          53 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno;
          54 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas no Mercado Interno e de Exportação;
          55 - Operação com Direito a Crédito – Vinculada a Receitas Não Tributadas no Mercado Interno e de Exportação;
          56 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação;
          60 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno;
          61 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno;
          62 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação;
          63 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno;
          64 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação;
          65 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Não Tributadas no Mercado Interno e de Exportação;
          66 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação;
          67 - Crédito Presumido – Outras Operações;
          70 - Operação de Aquisição sem Direito a Crédito;
          71 - Operação de Aquisição com Isenção;
          72 - Operação de Aquisição com Suspensão;
          73 - Operação de Aquisição a Alíquota Zero;
          74 - Operação de Aquisição sem Incidência da Contribuição;
          75 - Operação de Aquisição por Substituição Tributária;
          98 - Outras Operações de Entrada;
          99 - Outras Operações;
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="00" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="49" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="51" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="52" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="53" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="54" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="55" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="56" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="61" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="62" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="63" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="64" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="65" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="66" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="67" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="70" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="71" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="72" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="73" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="74" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="75" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="98" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:restriction>
  </xs:simpleType>

	<xs:simpleType name="TSTipoRetPISCofins" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Tipo de retenção do PIS/COFINS/CSLL:
        0 - PIS/COFINS/CSLL Não Retidos;
        1 - PIS/COFINS Retido;
        2 - PIS/COFINS Não Retido;
        3 - PIS/COFINS/CSLL Retidos;
        4 - PIS/COFINS Retidos, CSLL Não Retido;
        5 - PIS Retido, COFINS/CSLL Não Retido;
        6 - COFINS Retido, PIS/CSLL Não Retido;
        7 - PIS Não Retido, COFINS/CSLL Retidos;
        8 - PIS/COFINS Não Retidos, CSLL Retido;
        9 - COFINS Não Retido, PIS/CSLL Retidos;
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:restriction>
  </xs:simpleType>

	<xs:simpleType name="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="156" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Logradouro</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">CEP</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{8}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código de enderaçamento postal</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Cidade</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo string genérico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 100   -->
	<xs:simpleType name="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 100</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo data no formato AAAA-MM-DD  -->
	<xs:simpleType name="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema"> Tipo data AAAA-MM-DD</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="\d{4}-\d{2}-\d{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSIdeEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Identificação da Atividade de Evento (código identificador de evento determinado pela Administração Tributária Municipal)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSRTCFinNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Indicador da finalidade da emissão de NFS-e:
        0 - NFS-e regular;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCIndFinal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Indica operação de uso ou consumo pessoal (art. 57):
      0 - Não;
      1 - Sim;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodIndOp" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Código indicador da operação de fornecimento, conforme tabela "código indicador de operação"
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpOper" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Tipo de Operação com Entes Governamentais ou outros serviços sobre bens imóveis:
      1 – Fornecimento com pagamento posterior;
      2 - Recebimento do pagamento com fornecimento já realizado;
      3 – Fornecimento com pagamento já realizado;
      4 – Recebimento do pagamento com fornecimento posterior;
      5 – Fornecimento e recebimento do pagamento concomitantes;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSChaveNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Chave da Nota Fiscal de Serviço Eletrônica</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{50}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpEnteGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Tipo de ente governamental
      Para administração pública direta e suas autarquias e fundações:
      1 - União;
      2 - Estado;
      3 - Distrito Federal;
      4 - Município;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCIndDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      A respeito do Destinatário dos serviços:
      0 – o destinatário é o próprio tomador/adquirente identificado na NFS-e (tomador = adquirente = destinatário);
      1 – o destinatário não é o próprio adquirente, podendo ser outra pessoa, física ou jurídica (ou equiparada), ou um estabelecimento diferente do indicado como tomador (tomador = adquirente ≠ destinatário);
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Número do telefone do prestador:
      Preencher com o Código DDD + número do telefone.
      Nas operações com exterior é permitido informar o código do país + código da localidade + número do telefone
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6,20}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="80" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CNPJ</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{14}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CPF</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{11}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Motivo para não informação do NIF:
        0 - Não informado na nota de origem;
        1 - Dispensado do NIF;
        2 - Não exigência do NIF;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodPaisISO" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Código do País segundo tabela ISO</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[A-Z]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Código do Município segundo tabela IBGE</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{7}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:length value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código de Situação Tributária
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{3}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código de Classificação Tributária
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código e Classificação do Crédito Presumido
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 a 3 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Documento fiscal a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional:
        1 - NFS-e;
        2 - NF-e;
        3 - CT-e;
        9 - Outro;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Chave do Documento Fiscal Eletrônico
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número com 7 dígitos</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{7}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Tipo de valor incluído neste documento, recebido por motivo de estarem relacionadas a operações de terceiros,
        objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
        01 - Repasse de remuneração por intermediação de imóveis a demais corretores envolvidos na operação;
        02 - Repasse de valores a fornecedor relativo a fornecimento intermediado por agência de turismo;
        03 - Reembolso ou ressarcimento recebido por agência de propaganda e publicidade por valores pagos relativos 
             a serviços de produção externa por conta e ordem de terceiro;
        04 - Reembolso ou ressarcimento recebido por agência de propaganda e publicidade por valores pagos relativos 
             a serviços de mídia por conta e ordem de terceiro;
        99 - Outros reembolsos ou ressarcimentos recebidos por valores pagos relativos a operações por conta e ordem de terceiro;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo de ajuste da base de calculo (NT 009 v1.01): 2 Materiais; 5 Repasse consorciado; 6 Repasse plano de saude; 7 Servicos; 8 Subempreitada de mao de obra; 9 Profissional parceiro; 99 Outras deducoes exclusivas do ISSQN; 101 a 104 e 199 reembolso/repasse/ressarcimento (equivalem a 01 a 04 e 99 do NT 004); 105 Glosa de servicos de saude. Os tipos 2 a 99 e 105 sao recusados pela emissao do municipio (DPS_E070/DPS_E071).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="101" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="102" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="103" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="104" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="105" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="199" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 a 15 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,14}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo data no formato AAAA-MM-DD</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDesc600" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="600" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 ou 2 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,1}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- definition of complex elements -->
	<xs:complexType name="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Cpf" type="tsCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Cnpj" type="tsCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:choice>
	</xs:complexType>

	<xs:complexType name="tcEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="Endereco" type="tsEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Numero" type="tsNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Complemento" type="tsComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Bairro" type="tsBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoMunicipio" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Uf" type="tsUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoPais" type="tsCodigoPaisBacen" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Cep" type="tsCep" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCEnderecoSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="endExt" type="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
      <xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

	<xs:complexType name="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cEndPost" type="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código alfanumérico do Endereçamento Postal no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xCidade" type="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Nome da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xEstProvReg" type="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCAtvEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="xNome" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Descrição do evento Artístico, Cultural, Esportivo, etc</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="dtIni" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Data de início da atividade de evento. Ano, Mês e Dia (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="dtFim" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Data de fim da atividade de evento. Ano, Mês e Dia (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
			<xs:element name="end" type="TCEnderecoSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações relativas ao endereço da atividade, evento ou local do serviço prestado</xs:documentation>
				</xs:annotation>
			</xs:element>
    </xs:sequence>
  </xs:complexType>

	<!-- TIPOS COMPLEXOS IBS CBS -->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="finNFSe" type="TSRTCFinNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Indicador da finalidade da emissão de NFS-e
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="indFinal" type="TSRTCIndFinal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Indica operação de uso ou consumo pessoal (art. 57)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cIndOp" type="TSRTCCodIndOp" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código indicador da operação de fornecimento, conforme tabela "código indicador de operação"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="tpOper" type="TSRTCTpOper" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Tipo de Operação com Entes Governamentais ou outros serviços sobre bens imóveis
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gRefNFSe" type="TCInfoRefNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de NFS-e referenciadas
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="tpEnteGov" type="TSRTCTpEnteGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Tipo de ente governamental
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="indDest" type="TSRTCIndDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            A respeito do Destinatário dos serviços
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="dest" type="TCRTCInfoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relativas ao Destinatário
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="imovel" type="TCRTCInfoImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações de operações relacionadas a bens imóveis, exceto obras
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="valores" type="TCRTCInfoValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relativas aos valores do serviço prestado para IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCInfoRefNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="99" name="refNFSe" type="TSChaveNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Chave da NFS-e referenciada
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCInfoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CNPJ" type="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro Nacional de Pessoa Jurídica (CNPJ) do Destinatário do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CPF" type="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro de Pessoa Física (CPF) do Destinatário do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="NIF" type="tsNif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número de Identificação Fiscal fornecido por órgão de administração tributária no exterior
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="cNaoNIF" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Motivo para não informação do NIF:
              0 - Não informado na nota de origem;
              1 - Dispensado do NIF;
              2 - Não exigência do NIF;
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Nome / Nome Empresarial do do Destinatário do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="end" type="TCEnderecoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações do endereço do Destinatário do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="fone" type="TSTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Número do telefone do Destinatário do serviço
            (Preencher com o Código DDD + número do telefone. Nas operações com exterior é permitido informar o
            código do país + código da localidade + número do telefone)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="email" type="TSEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">E-mail do Destinatário do serviço</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          Inscrição imobiliária fiscal (código fornecido pela Prefeitura Municipal para a identificação da obra ou para fins de recolhimento do IPTU)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cCIB" type="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código do Cadastro Imobiliário Brasileiro - CIB
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="end" type="TCEnderObraEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações do endereço da obra do serviço prestado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cMun" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="99" minOccurs="0" name="gUnidImob" type="TCRTCUnidadesImobiliariasEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderObraEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="1" name="endExt" type="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderecoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="endNac" type="TCEnderNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço nacional</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="endExt" type="TCEnderExt" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderExt" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cPais" type="TSCodPaisISO" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código do país (Tabela de Países ISO)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cEndPost" type="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código alfanumérico do Endereçamento Postal no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xCidade" type="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Nome da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xEstProvReg" type="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cMun" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código do município, conforme Tabela do IBGE</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="gReeRepRes" type="TCRTCInfoReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	            Grupo de informações relativas a valores incluídos neste documento e recebidos por motivo de estarem relacionadas 
	            a operações de terceiros, objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="vAjusteBC" type="TCInfoAjusteBCEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
			<xs:element name="trib" type="TCRTCInfoTributosIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionados aos tributos IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Leiaute NT 009 v1.01 (task #167989): ajuste de base por documentos e unidade imobiliaria. Exclusividade com o NT 004 validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCInfoAjusteBCEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de ajuste da base de calculo por documentos (NT 009). O ajuste monetario do ISSQN usa o campo de deducao proprio do layout.</xs:documentation>
		</xs:annotation>
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="documentos" type="TCListaDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCListaDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1000" minOccurs="1" name="docAjusteBC" type="TCDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="tpAjusteBC" type="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xTpAjusteBC" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="vTotDoc" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="vAjusteAplic" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="dtEmiDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="dtCompDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="dFeNacional" type="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="docFiscalOutro" type="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="docOutro" type="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
			<xs:element minOccurs="0" name="fornec" type="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCUnidadesImobiliariasEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="cCIB" type="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="end" type="TCEnderImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCInfoReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1000" minOccurs="1" name="documentos" type="TCRTCListaDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo relativo aos documentos referenciados nos casos de reembolso, repasse e ressarcimento que serão 
            considerados na base de cálculo do ISSQN, do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoTributosIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="CST" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="cClassTrib" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="gIBSCBS" type="TCRTCInfoTributosSitClas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionadas ao IBS e à CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoTributosSitClas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="CST" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Situação Tributária do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cClassTrib" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Classificação Tributária do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cCredPres" type="TSRTCCodCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código e Classificação do Crédito Presumido: IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribRegular" type="TCRTCInfoTributosTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações da Tributação Regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gDif" type="TCRTCInfoTributosDif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionadas ao diferimento para IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCInfoTributosTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="CSTReg" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Situação Tributária do IBS e da CBS de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cClassTribReg" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código da Classificação Tributária do IBS e da CBS de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCInfoTributosDif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pDifUF" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para o IBS estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pDifMun" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para o IBS municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pDifCBS" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para a CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCListaDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="dFeNacional" type="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documentos fiscais eletrônicos que se encontram no repositório nacional
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="docFiscalOutro" type="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documento fiscais, eletrônicos ou não, que não se encontram no repositório nacional
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="docOutro" type="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documento não fiscal.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element minOccurs="0" name="fornec" type="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações do fornecedor do documento referenciado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtEmiDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Data da emissão do documento dedutível
            Ano, mês e dia (AAAA-MM-DD)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtCompDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Data da competência do documento dedutível
            Ano, mês e dia (AAAA-MM-DD)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="tpReeRepRes" type="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Tipo de valor incluído neste documento, recebido por motivo de estarem relacionadas a operações de terceiros, 
            objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xTpReeRepRes" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do reembolso ou ressarcimento quando a opção é 
            "99 – Outros reembolsos ou ressarcimentos recebidos por valores pagos relativos a operações por conta e ordem de terceiro"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vlrReeRepRes" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor monetário (total ou parcial, conforme documento informado) utilizado para não inclusão na base de cálculo 
            do ISS e do IBS e da CBS da NFS-e que está sendo emitida (R$)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="nDoc" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Número do documento não fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xDoc" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do documento não fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CNPJ" type="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro Nacional de Pessoa Jurídica (CNPJ) do Fornecedor do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CPF" type="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro de Pessoa Física (CPF) do Fornecedor do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="NIF" type="tsNif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Este elemento só deverá ser preenchido para fornecedores não residentes no Brasil
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="cNaoNIF" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Motivo para não informação do NIF:
              0 - Não informado na nota de origem;
              1 - Dispensado do NIF;
              2 - Não exigência do NIF;
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Nome / Razão Social do do Fornecedor do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="tipoChaveDFe" type="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Documento fiscal a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xTipoChaveDFe" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição da DF-e a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional
            Deve ser preenchido apenas quando "tipoChaveDFe = 9 (Outro)"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="chaveDFe" type="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Chave do Documento Fiscal eletrônico do repositório nacional referenciado para os casos de operações já tributadas
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cMunDocFiscal" type="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código do município emissor do documento fiscal que não se encontra no repositório nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nDocFiscal" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Número do documento fiscal que não se encontra no repositório nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xDocFiscal" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do documento fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="cLocalidadeIncid" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Código IBGE da localidade de incidência do IBS/CBS (local da operação)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xLocalidadeIncid" type="TSDesc600" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Nome da localidade de incidência do IBS/CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pRedutor" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Percentual de redução de aliquota em compra governamental
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="valores" type="TCRTCValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Grupo de valores brutos referentes ao IBS/CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="totCIBS" type="TCRTCTotalCIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Grupo de Totalizadores
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DOS VALORES BRUTOS IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="vBC" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da base de cálculo (BC) do IBS/CBS antes das reduções para cálculo do tributo bruto
            vBC = vServ - descIncond – vCalcReeRepRes – vISSQN – vPIS - vCOFINS (até 2026) ou
            vBC = vServ - descIncond – vCalcReeRepRes – vISSQN (até 2032)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="vCalcReeRepRes" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor monetário (R$) total relativo ao fornecimento próprio de bens materiais ou relacionados a operações de terceiros, 
            objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados e que não integram 
            da base de cálculo (BC) do ISSQN, do IBS e da CBS.
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="uf" type="TCRTCValoresIBSCBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores do IBS Estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mun" type="TCRTCValoresIBSCBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores do IBS Municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fed" type="TCRTCValoresIBSCBSFed" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO IBS ESTADUAL-->
	<xs:complexType name="TCRTCValoresIBSCBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da UF para IBS da localidade de incidência parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqUF" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de redução de alíquota estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetUF = pIBSUF x (1 - pRedAliqUF) x (1 - pRedutor)
            Se pRedAliqUF não for informado na DPS, então pAliqEfetUF é a própria pIBSUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO IBS MUNICIPAL-->
	<xs:complexType name="TCRTCValoresIBSCBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do Município para IBS da localidade de incidência parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqMun" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de redução de alíquota municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetMun = pIBSMun x (1 - pRedAliqMun) x (1 - pRedutor)
            Se pRedAliqMun não for informado na DPS, então pAliqEfetMun é a própria pIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO CBS-->
	<xs:complexType name="TCRTCValoresIBSCBSFed" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da União para CBS parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqCBS" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual da redução de alíquota da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetCBS = pCBS x (1 - pRedAliqCBS) x (1 - pRedutor)
            Se pRedAliqCBS não for informado na DPS, então pAliqEfetCBS é a própria pCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCTotalCIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vTotNF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor Total da NF considerando os impostos por fora: IBS e CBS
            O IBS e a CBS são por fora, por isso seus valores devem ser adicionados ao valor total da NF
            vTotNF = vLiq (em 2026)
            vTotNF = vLiq + vCBS + vIBSTot (a partir de 2027)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gIBS" type="TCRTCTotalIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gCBS" type="TCRTCTotalCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes à CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribRegular" type="TCRTCTotalTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribCompraGov" type="TCRTCTotalTribCompraGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações da composição do valor do IBS e da CBS em compras governamentais
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS-->
	<xs:complexType name="TCRTCTotalIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vIBSTot" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor total do IBS.
            vIBSTot = vIBSUF + vIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gIBSCredPres" type="TCRTCTotalIBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao crédito presumido para IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="gIBSUFTot" type="TCRTCTotalIBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS Estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="gIBSMunTot" type="TCRTCTotalIBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS Municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CREDITO PRESUMIDO IBS-->
	<xs:complexType name="TCRTCTotalIBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCredPresIBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do crédito presumido para o IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCredPresIBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Crédito Presumido para o IBS
            vCredPresIBS = vBC x pCredPresIBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS ESTADUAL-->
	<xs:complexType name="TCRTCTotalIBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vDifUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento do IBS estadual
            vDifUF = vIBSUF x pDifUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor do IBS estadual
            vIBSUF = vBC x (pIBSUF ou pAliqEfetUF)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS MUNICIPAL-->
	<xs:complexType name="TCRTCTotalIBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vDifMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento do IBS municipal
            vDifMun = vIBSMun x pDifMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor do IBS municipal
            vIBSMun = vBC x (pIBSMun ou pAliqEfetMun)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CBS-->
	<xs:complexType name="TCRTCTotalCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="gCBSCredPres" type="TCRTCTotalCBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao crédito presumido para CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vDifCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento CBS
            vDifCBS = vCBS x pDifCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor da CBS da União
            vCBS = vBC x (pCBS ou pAliqEfetCBS)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CREDITO PRESUMIDO CBS-->
	<xs:complexType name="TCRTCTotalCBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCredPresCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do crédito presumido para a CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCredPresCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Crédito Presumido da CBS
            vCredPresCBS = vBC x pCredPresCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES TRIBUTAÇÃO REGULAR-->
	<xs:complexType name="TCRTCTotalTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pAliqEfeRegIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular do IBS estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular do IBS estadual
            vTribRegIBSUF = vBC x pAliqEfeRegIBSUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfeRegIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular do IBS municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular do IBS municipal
            vTribRegIBSMun = vBC x pAliqEfeRegIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfeRegCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular da CBS
            vTribRegCBS = vBC x pAliqEfeRegCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBSCBS EM COMPRAS GOVERNAMENTAIS-->
	<xs:complexType name="TCRTCTotalTribCompraGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do IBS de competência do Estado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo do IBS da UF calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do IBS de competência do Município
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo do IBS do Município calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo da CBS calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcContato" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="Telefone" type="tsTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Email" type="tsEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoOrgaoGerador" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoMunicipio" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Uf" type="tsUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Numero" type="tsNumeroRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Serie" type="tsSerieRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Tipo" type="tsTipoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoConsulente" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcDadosTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="IdentificacaoTomador" type="tcIdentificacaoTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NifTomador" type="tsNif" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="RazaoSocial" type="tsRazaoSocial" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Endereco" type="tcEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Contato" type="tcContato" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcDadosIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoIntermediario" type="tcIdentificacaoIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="RazaoSocial" type="tsRazaoSocial" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoMunicipio" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="NIF" type="tsNif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número de Identificação Fiscal fornecido por órgão de administração tributária no exterior</xs:documentation>
				</xs:annotation>
			</xs:element>

			<xs:element minOccurs="0" name="end" type="TCEnderecoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Dados de endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcValoresDeclaracaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="ValorServicos" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorDeducoes" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorPis" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorCofins" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorInss" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorIr" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorCsll" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="OutrasRetencoes" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValTotTributos" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorIss" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Aliquota" type="tsAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="DescontoIncondicionado" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="DescontoCondicionado" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CSTPisCofins" type="TSTipoCST" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="tpRetPisCofins" type="TSTipoRetPISCofins" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcValoresNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="BaseCalculo" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Aliquota" type="tsAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorIss" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="ValorLiquidoNfse" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcDadosServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Valores" type="tcValoresDeclaracaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="IssRetido" type="tsSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ResponsavelRetencao" type="tsResponsavelRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="ItemListaServico" type="tsItemListaServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoCnae" type="tsCodigoCnae" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoTributacaoMunicipio" type="tsCodigoTributacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoNbs" type="tsCodigoNbs" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Discriminacao" type="tsDiscriminacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoMunicipio" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoPais" type="tsCodigoPaisBacen" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="ExigibilidadeISS" type="tsExigibilidadeISS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="MunicipioIncidencia" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NumeroProcesso" type="tsNumeroProcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="IBSCBS" type="TCRTCInfoIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>


		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcDadosConstrucaoCivil" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoObra" type="tsCodigoObra" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="CodigoVinculacao" type="tsCodigoVinculacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Art" type="tsArt" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
            <xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:choice maxOccurs="1" minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" name="cCIB" type="tsCodigoDoCadastroImobiliarioBrasileiro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="Endereco" type="TCEnderecoSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>

		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcDadosPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoPrestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="RazaoSocial" type="tsRazaoSocial" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NomeFantasia" type="tsNomeFantasia" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Endereco" type="tcEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Contato" type="tcContato" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcInfRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoRps" type="tcIdentificacaoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="DataEmissao" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Status" type="tsStatusRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="RpsSubstituido" type="tcIdentificacaoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcInfDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="0" name="Rps" type="tcInfRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Competencia" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Servico" type="tcDadosServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Tomador" type="tcDadosTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Intermediario" type="tcDadosIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ConstrucaoCivil" type="tcDadosConstrucaoCivil" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="RegimeEspecialTributacao" type="tsRegimeEspecialTributacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="OptanteSimplesNacional" type="tsSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="IncentivoFiscal" type="tsSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Evento" type="TCAtvEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="InfDeclaracaoPrestacaoServico" type="tcInfDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcIdentificacaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Numero" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="Serie" type="tsSerieRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoMunicipio" type="tsCodigoMunicipioIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcInfNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Numero" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoVerificacao" type="tsCodigoVerificacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="DataEmissao" type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NfseSubstituida" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="OutrasInformacoes" type="tsOutrasInformacoes" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="ValoresNfse" type="tcValoresNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="ValorCredito" type="tsValor" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="PrestadorServico" type="tcDadosPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="OrgaoGerador" type="tcIdentificacaoOrgaoGerador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="DeclaracaoPrestacaoServico" type="tcDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NotaNacional" type="tcNotaNacional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="InfNfse" type="tcInfNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="tsVersao" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcNotaNacional" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="chaveAcessoNacional" type="tsChaveNotaNac" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="numero" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="cTribNac" type="tsCodTribNac" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                        <xs:element maxOccurs="1" minOccurs="1" name="cTribMun" type="tsCodTribMun" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="IBSCBS" type="TCRTCIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcInfPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoNfse" type="tcIdentificacaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CodigoCancelamento" type="tsCodigoCancelamentoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="InfPedidoCancelamento" type="tcInfPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcConfirmacaoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Pedido" type="tcPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="DataHora" type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcCancelamentoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Confirmacao" type="tcConfirmacaoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="tsVersao" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcRetCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="NfseCancelamento" type="tcCancelamentoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>



	<xs:complexType name="tcInfSubstituicaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="NfseSubstituidora" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcSubstituicaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="SubstituicaoNfse" type="tcInfSubstituicaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="2" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="tsVersao" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:complexType name="tcCompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Nfse" type="tcNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NfseCancelamento" type="tcCancelamentoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="NfseSubstituicao" type="tcSubstituicaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
            <xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="Codigo" type="tsCodigoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Mensagem" type="tsDescricaoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="Correcao" type="tsDescricaoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcMensagemRetornoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoRps" type="tcIdentificacaoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Codigo" type="tsCodigoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="Mensagem" type="tsDescricaoMensagemAlerta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="tcLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1" minOccurs="1" name="NumeroLote" type="tsNumeroLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="CpfCnpj" type="tcCpfCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="InscricaoMunicipal" type="tsInscricaoMunicipal" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="QuantidadeRps" type="tsQuantidadeRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="1" name="ListaRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:element maxOccurs="unbounded" minOccurs="1" name="Rps" type="tcDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		<xs:attribute name="versao" type="tsVersao" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<xs:element name="ListaMensagemRetornoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="unbounded" minOccurs="1" name="MensagemRetorno" type="tcMensagemRetornoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="unbounded" minOccurs="1" name="MensagemRetorno" type="tcMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ListaMensagemAlertaRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="unbounded" minOccurs="1" name="MensagemRetorno" type="tcMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="CompNfse" type="tcCompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

	<xs:element name="EnviarLoteRpsEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="LoteRps" type="tcLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="RecepcionarLoteRpsRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="RecepcionarLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="CancelarNfseRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="CancelarNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarLoteRpsRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfsePorRpsRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfsePorRps" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseFaixa" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseFaixaRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="RecepcionarLoteRpsSincrono" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="RecepcionarLoteRpsSincronoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoPrestado" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoPrestadoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="GerarNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="GerarNfseRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="versaoDados" type="tsVersao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="tsVersao" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="RecepcionarLoteRpsResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="EnviarLoteRpsResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="EnviarLoteRpsResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="NumeroLote" type="tsNumeroLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element maxOccurs="1" minOccurs="1" name="DataRecebimento" type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element maxOccurs="1" minOccurs="1" name="Protocolo" type="tsNumeroProtocolo" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:sequence>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

	<xs:element name="EnviarLoteRpsSincronoEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="LoteRps" type="tcLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>

	</xs:element>

	<xs:element name="EnviarLoteRpsSincronoResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" name="NumeroLote" type="tsNumeroLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="DataRecebimento" type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="Protocolo" type="tsNumeroProtocolo" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="unbounded" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="0" ref="ListaMensagemAlertaRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetornoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="GerarNfseEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="Rps" type="tcDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="GerarNfseResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="1" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="0" ref="ListaMensagemAlertaRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="CancelarNfseEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="Pedido" type="tcPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="CancelarNfseResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="RetCancelamento" type="tcRetCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

	<xs:element name="SubstituirNfseEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="SubstituicaoNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element name="Pedido" type="tcPedidoCancelamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							<xs:element name="Rps" type="tcDeclaracaoPrestacaoServico" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
						<xs:attribute name="Id" type="tsIdTag" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="SubstituirNfseResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="RetSubstituicao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element name="NfseSubstituida" xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
									<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
										<xs:element maxOccurs="1" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
										<xs:element maxOccurs="1" minOccurs="0" ref="ListaMensagemAlertaRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="NfseSubstituidora" xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
									<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
										<xs:element maxOccurs="1" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarLoteRpsEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="Protocolo" type="tsNumeroProtocolo" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarLoteRpsResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="Situacao" type="tsSituacaoLoteRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="50" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="0" ref="ListaMensagemAlertaRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetornoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseRpsEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="IdentificacaoRps" type="tcIdentificacaoRps" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseRpsResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:element name="ExportacaoNfseAbrasf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="unbounded" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoPrestadoEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="NumeroNfse" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="PeriodoEmissao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="1" minOccurs="1" name="DataInicial" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="1" name="DataFinal" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element maxOccurs="1" minOccurs="1" name="PeriodoCompetencia" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="1" minOccurs="1" name="DataInicial" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="1" name="DataFinal" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
				</xs:choice>
				<xs:element maxOccurs="1" minOccurs="0" name="Tomador" type="tcIdentificacaoTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="Intermediario" type="tcIdentificacaoIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="Pagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoPrestadoResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element maxOccurs="50" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							<xs:element maxOccurs="1" minOccurs="0" name="ProximaPagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoTomado" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoTomadoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="SubstituirNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="SubstituirNfseRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="nfseCabecMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element ref="cabecalho" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="nfseDadosMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="skip" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<xs:element name="ConsultarNfseServicoTomadoEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="Consulente" type="tcIdentificacaoConsulente" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="NumeroNfse" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element maxOccurs="1" minOccurs="1" name="PeriodoEmissao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="1" minOccurs="1" name="DataInicial" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="1" name="DataFinal" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element maxOccurs="1" minOccurs="1" name="PeriodoCompetencia" xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
								<xs:element maxOccurs="1" minOccurs="1" name="DataInicial" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
								<xs:element maxOccurs="1" minOccurs="1" name="DataFinal" type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
				</xs:choice>
				<xs:element maxOccurs="1" minOccurs="0" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="Tomador" type="tcIdentificacaoTomador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="Intermediario" type="tcIdentificacaoIntermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="Pagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseServicoTomadoResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element maxOccurs="50" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							<xs:element maxOccurs="1" minOccurs="0" name="ProximaPagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseFaixaEnvio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="Prestador" type="tcIdentificacaoPrestador" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="Faixa" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element maxOccurs="1" minOccurs="1" name="NumeroNfseInicial" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							<xs:element maxOccurs="1" minOccurs="0" name="NumeroNfseFinal" type="tsNumeroNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" name="Pagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="dsig:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="ConsultarNfseFaixaResposta" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="ListaNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
							<xs:element maxOccurs="50" minOccurs="1" ref="CompNfse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
							<xs:element maxOccurs="1" minOccurs="0" name="ProximaPagina" type="tsPagina" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element maxOccurs="1" minOccurs="1" ref="ListaMensagemRetorno" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

</xs:schema>
    <xs:schema xmlns="http://ws.pc.gif.com.br/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ws.pc.gif.com.br/">
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

	<!-- Definicao de estruturas para chamadas dos serviços Web       -->

	<xs:element name="ping" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	</xs:element>

	<xs:element name="pingRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	</xs:element>

	<xs:element name="pingResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	</xs:element>

	<xs:element name="enviarLoteCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="envioLote" type="envioLoteCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="enviarLoteCupomRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="envioLote" type="envioLoteCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterLoteNotaFiscal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="pedidoLoteNFSe" type="pedidoLoteNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterLoteNotaFiscalResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="resPedidoLoteNFSe" type="resPedidoLoteNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterLoteNotaFiscalRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="pedidoLoteNFSe" type="pedidoLoteNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<xs:element name="enviarLoteNotas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="envioLote" type="envioLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="enviarLoteNotasResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="confirmaLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="enviarLoteNotasRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="envioLote" type="envioLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterCriticaLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterCriticaLoteResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resultadoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterCriticaLoteRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSeTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalTomadaRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSeTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalTomadaResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoNFSeTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalLoteResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalLoteRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="obterAliquotaSimplesNacionalRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="obterAliquotaSimplesNacional" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="pedidoAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="competencia" type="TDataAnoMes" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="lei116" type="TLCServ" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="anexoLei116" type="TString3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="resPedidoAliquota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="aliquota" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="obterNotaFiscalXml" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalXmlResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotaFiscalXmlRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNumeracaoResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="retornoNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNumeracaoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterInformacaoRetencaoResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="retornoInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterInformacaoRetencaoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="pedidoInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="cnpjCpfPrestador" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="cnpjCpfTomador" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="codigoServico" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="localTributacao" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="retornoInformacaoRetencao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="cnpjCpfTomador" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="codigoServico" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="dhTrans" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="aplicarRetencao" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de Numeracao de uma Série -->
	<xs:element name="pedidoNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Série  -->
				<xs:element minOccurs="1" name="serie" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de uma NFSe -->
	<xs:element name="retornoNumeracao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e hora da transmissao do lote -->
				<xs:element name="dhTrans" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Série  -->
				<xs:element minOccurs="1" name="serie" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Ultimo Numero Utilizado  -->
				<xs:element minOccurs="1" name="numeroAtual" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>


	<xs:element name="cancelarNotaFiscal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedCancelaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedAnulaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cancelarNotaFiscalResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resCancelaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cancelarNotaFiscalRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedCancelaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedAnulaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoLoteNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="consultarNotaFiscal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedConsultaTrans" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="consultarNotaFiscalResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resConsultaTrans" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="consultarNotaFiscalRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedConsultaTrans" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPDFResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoLoteNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPDFRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoLoteNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterCriticaLotePDFRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterCriticaLotePDFResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resultadoLotePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPDFLoteRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoNFSeLotePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPDFLoteResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoNFSePDFLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="resultadoLotePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="1" name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="urlDownload" type="TString500" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="pedidoNFSeLotePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="dataInicial" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="dataFinal" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CNPJTomador" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CPFTomador" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="situacao" type="TSituacaoExportaNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="resPedidoNFSePDFLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPNG" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoLoteNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPNGResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="resPedidoLoteNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterNotasEmPNGRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="pedidoLoteNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cancelarLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoCancelamentoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cancelarLoteResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="confirmaCancelamentoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="cancelarLoteRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoCancelamentoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterReciboLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterReciboLoteResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="confirmaLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="obterReciboLoteRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<xs:element name="resPedidoLoteNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e Hora de emissao -->
				<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Conteudo em formato Base64 -->
				<xs:element maxOccurs="1" minOccurs="0" name="NFS-ePNG" type="TStringBase64" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Quantidade de paginas da NFSe -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroPaginas" type="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="sit" type="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="resPedidoLoteNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e Hora de emissao -->
				<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Conteudo em formato Base64 -->
				<xs:element maxOccurs="1" minOccurs="0" name="NFS-ePDF" type="TStringBase64" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="sit" type="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Obter Notas em PNG -->
	<xs:element name="pedidoLoteNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CNPJTomador" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CPFTomador" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie das notas   -->
				<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de Acesso da NFS-e -->
				<xs:element maxOccurs="1" minOccurs="0" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da pagina da NFS!e -->
				<xs:element maxOccurs="1" minOccurs="0" name="pagina" type="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Obter Notas em PNG -->
	<xs:element name="pedidoNFSePNG" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CNPJTomador" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CPFTomador" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie das notas   -->
				<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de Acesso da NFS-e -->
				<xs:element maxOccurs="1" minOccurs="0" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da pagina da NFS!e -->
				<xs:element maxOccurs="1" minOccurs="0" name="pagina" type="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Obter Notas em PDF -->
	<xs:element name="pedidoLoteNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CNPJTomador" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CPFTomador" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie das notas   -->
				<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de Acesso da NFS-e -->
				<xs:element maxOccurs="1" minOccurs="0" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Obter Notas em PDF -->
	<xs:element name="pedidoNFSePDF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de Acesso da NFS-e -->
				<xs:element maxOccurs="1" minOccurs="0" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao inicial   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoInicial" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao final   -->
				<xs:element maxOccurs="1" minOccurs="0" name="emissaoFinal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CNPJTomador" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="CPFTomador" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie das notas   -->
				<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<!-- Assinatura digital  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Envio de Lote NFSe -->
	<xs:complexType name="envioLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">

		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- CNPJ de um contribuinte -->
			<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data e hora da transmissao do lote -->
			<xs:element name="dhTrans" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Notas fiscais de servico do lote -->
			<xs:element maxOccurs="999" minOccurs="1" ref="NFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Assinatura digital   -->
			<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

	</xs:complexType>

	<!-- Definicao da estrutura de dados para Envio de Lote NFSe -->
	<xs:complexType name="envioLoteCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">

		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- CNPJ de um contribuinte -->
			<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data e hora da transmissao do lote -->
			<xs:element name="dhTrans" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Notas fiscais de servico do lote -->
			<xs:element maxOccurs="1" minOccurs="1" ref="CFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Assinatura digital   -->
			<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

	</xs:complexType>

	<!-- Definicao da estrutura de dados para confirmacao de recebimento de Lote NFSe -->
	<xs:element name="confirmaLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Protocolo do Lote -->
				<xs:element name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e hora do recebimento do lote -->
				<xs:element name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao do lote -->
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element name="mot" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de Status de Lote NFSe -->
	<xs:element name="pedidoStatusLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do lote   -->
				<xs:element minOccurs="1" name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situação   -->
				<xs:element maxOccurs="1" minOccurs="0" name="sit" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao de estrutura de dados para confirmacao de recebimento de status do lote-->
	<xs:element name="resultadoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do lote -->
				<xs:element minOccurs="1" name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e hora do recebimento do lote -->
				<xs:element name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao do lote -->
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nota Fiscal eletronica   -->
				<xs:element maxOccurs="999" minOccurs="0" ref="NFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de situacao da NFSe -->
	<xs:element name="NFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Número do lote   -->
				<xs:element maxOccurs="1" minOccurs="0" name="chvAcessoNFSe" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número da nota nacional   -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroNotaNacional" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!--Chave de acesso da nota nacional   -->
				<xs:element maxOccurs="1" minOccurs="0" name="chaveAcessoNotaNacional" type="TChaveAcessoNac" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao do lote -->
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element ref="motivos" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura motivos-->
	<xs:element name="motivos" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Motivo -->
				<xs:element maxOccurs="999" minOccurs="1" name="mot" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de Cancelamento de Lote NFSe -->
	<xs:element name="pedidoCancelamentoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do lote   -->
				<xs:element minOccurs="1" name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para retorno de pedido de Cancelamento de Lote NFSe -->
	<xs:element name="confirmaCancelamentoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do lote   -->
				<xs:element minOccurs="1" name="cLote" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do lote   -->
				<xs:element minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao -->
				<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo -->
				<xs:element maxOccurs="1" minOccurs="1" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de um Lote NFSe -->
	<xs:complexType name="pedidoLoteNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- CNPJ de um contribuinte -->
			<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Numero da nota inicial   -->
			<xs:element maxOccurs="1" minOccurs="1" name="notaInicial" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Numero da nota final   -->
			<xs:element maxOccurs="1" minOccurs="1" name="notaFinal" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data de emissao inicial   -->
			<xs:element maxOccurs="1" minOccurs="0" name="emissaoInicial" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data de emissao final   -->
			<xs:element maxOccurs="1" minOccurs="0" name="emissaoFinal" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Serie das notas   -->
			<xs:element maxOccurs="1" minOccurs="0" name="serieNotaFiscal" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" name="serie_nf" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Assinatura digital   -->
			<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<!-- Definicao da estrutura de dados para Pedido de um Lote NFSe -->
	<xs:complexType name="resPedidoLoteNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- CNPJ de um contribuinte -->
			<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Numero da nota inicial   -->
			<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Numero da nota inicial   -->
			<xs:element maxOccurs="500" minOccurs="1" ref="NFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Situacao -->
			<xs:element name="sit" type="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
		<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
	</xs:complexType>

	<!-- Definicao da estrutura de dados para Cancelamento de uma NFSe -->
	<xs:element name="pedAnulaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element name="motivo" type="TMotCanc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Cancelamento de uma NFSe -->
	<xs:element name="pedCancelaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element name="motivo" type="TMotCanc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Cancelamento de uma NFSe -->
	<xs:element name="resCancelaNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data Hora recebimento  -->
				<xs:element name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero Protocolo  -->
				<xs:element name="nProt" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao  -->
				<xs:element name="sit" type="TSituacaoCancelamentoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de um conjunto de NFS-e tomadas -->
	<xs:element name="pedidoNFSeTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data Inicial   -->
				<xs:element minOccurs="1" name="dataInicial" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Saída     -->
				<xs:element minOccurs="1" name="dataFinal" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Retorno a um Pedido de uma NFSe -->
	<xs:element name="resPedidoNFSeTomada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e Hora recebimento   -->
				<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="sit" type="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nota Fiscal   -->
				<xs:element minOccurs="0" ref="NFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Pedido de uma NFSe -->
	<xs:element name="pedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Retorno a um Pedido de uma NFSe -->
	<xs:element name="resPedidoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso -->
				<xs:element maxOccurs="1" minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e Hora recebimento   -->
				<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nota Fiscal   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="NFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="sit" type="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo  -->
				<xs:element minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Consulta do Status de uma NFSe -->
	<xs:element name="pedConsultaTrans" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element maxOccurs="1" minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para Retorno de Status de uma NFSe -->
	<xs:element name="resConsultaTrans" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso   -->
				<xs:element maxOccurs="1" minOccurs="1" name="chvAcessoNFS-e" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data e Hora recebimento   -->
				<xs:element maxOccurs="1" minOccurs="1" name="dhRecbto" type="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Protocolo   -->
				<xs:element maxOccurs="1" minOccurs="1" name="nProt" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Situacao da NFSe   -->
				<xs:element maxOccurs="1" minOccurs="1" name="sitNFS-e" type="TSituacaoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- sit   -->
				<xs:element maxOccurs="1" minOccurs="1" name="sit" type="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo   -->
				<xs:element maxOccurs="1" minOccurs="0" name="mot" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="inutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="solicitacaoInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="inutilizacaoRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="solicitacaoInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para pedido de inutilizacao de numeracao de NFSe -->
	<xs:element name="solicitacaoInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Numero da Solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="numeroSolicitacao" type="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CNPJ contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="cnpjContribuinte" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data da solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="dataSolicitacao" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora da solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="horaSolicitacao" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Conteudo das inutilizacoes -->
				<xs:element maxOccurs="1" minOccurs="1" ref="numerosInutilizados" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao de estrutura para a numeracao e serie a serem inutilizadas -->
	<xs:element name="numerosInutilizados" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Informacoes sobre uma nota com numeracao inutilizada -->
				<xs:element maxOccurs="999" minOccurs="1" ref="inutilizar" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao de estrutura para a numeracao e serie a serem inutilizadas -->
	<xs:element name="inutilizar" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:attribute name="numero" type="xs:string" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:attribute name="serie" type="xs:string" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para pedido de inutilizacao de numeracao de NFSe -->
	<xs:element name="retornoSolicitacaoInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Numero da Solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="numeroSolicitacao" type="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CNPJ contribuinte -->
				<xs:element maxOccurs="1" minOccurs="1" name="cnpjContribuinte" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data da solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="dataRetornoSolicitacao" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora da solicitacao -->
				<xs:element maxOccurs="1" minOccurs="1" name="horaRetornoSolicitacao" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Mensagem -->
				<xs:element maxOccurs="1" minOccurs="1" name="mensagem" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Protocolos de retorno de inutilizacao -->
				<xs:element maxOccurs="1" minOccurs="0" ref="protocolosInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Assinatura digital   -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao de estrutura para o retorno de inutilizacao de numeracao -->
	<xs:element name="protocolosInutilizacao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="999" minOccurs="0" ref="inutilizado" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="inutilizado" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:attribute name="numero" type="xs:string" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:attribute name="serie" type="xs:string" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>



	<!-- ***********************************************************  -->
	<!-- Definicao de estruturas de dados compostas                   -->

	<!-- Definicao da estrutura de dados para uma NFSe -->
	<xs:element name="NFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Informacoes sobre uma nota -->
				<xs:element ref="infNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                <xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para uma CFSe -->
	<xs:element name="CFS-e" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Informacoes sobre uma nota -->
				<xs:element ref="infCFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para as informacoes de uma NFSe -->
	<xs:element name="infNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Dados de identificação da NFSe -->
				<xs:element ref="Id" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados do emitente da NFSe -->
				<xs:element ref="prest" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de tomador da NFSe -->
				<xs:element ref="TomS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de intermediario da NFSe -->
				<xs:element maxOccurs="1" minOccurs="0" ref="intermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados do local de entrega  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="dadosDaObra" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="transportadora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes dos itens de servico da NFSe -->
				<xs:element maxOccurs="unbounded" minOccurs="0" ref="det" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Despesas Adicionais não tributavel NFSe -->
				<xs:element maxOccurs="1" minOccurs="0" ref="despesas" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Reembolso da NFSe -->
				<xs:element maxOccurs="unbounded" minOccurs="0" ref="reembolso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de totalizacao da NFSe -->
				<xs:element ref="total" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de cobranca da NFSe -->
				<xs:element maxOccurs="1" minOccurs="0" ref="faturas" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados da nota Nacional  -->
				<xs:element maxOccurs="1" minOccurs="0" ref="notaNacional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Local de tributacao a ser exibido na area de Informacoes Adicionais -->
				<xs:element maxOccurs="1" minOccurs="0" name="infAdicLT" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Indica se deve ser exibido Exportacao de Servico na area de Informacoes Adicionais -->
				<xs:element maxOccurs="1" minOccurs="0" name="infAdicES" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Informacoes adicionais de interesse do fisco -->
				<xs:element maxOccurs="999" minOccurs="0" name="infAdic" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Exibir valor aproximado de tributos nas informações adicionais -->
				<xs:element maxOccurs="1" minOccurs="0" name="infAdicAT" type="TChar0ate2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Exibir valor aproximado de tributos nas informações adicionais -->
				<xs:element maxOccurs="1" minOccurs="0" name="NumVeiculo" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

			</xs:sequence>
			<!-- Versão do formato XML da NFSe em está sendo submetido o arquivo XML de lote -->
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para as informacoes de um CFSe -->
	<xs:element name="infCFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Dados de identificação da NFSe -->
				<xs:element name="Id" type="IdCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados do emitente da NFSe -->
				<xs:element ref="prest" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de tomador da NFSe -->
				<xs:element name="TomS" type="TomSCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes dos itens de servico da NFSe -->
				<xs:element maxOccurs="999" minOccurs="1" name="det" type="detCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes do estacionamento -->
				<xs:element maxOccurs="1" minOccurs="0" ref="estacionamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Dados de totalizacao da NFSe -->
				<xs:element name="total" type="totalCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
			<!-- Versão do formato XML da NFSe em está sendo submetido o arquivo XML de lote -->
			<xs:attribute name="versao" type="xs:string" use="optional" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para a identificacao de uma NFSe -->
	<xs:element name="Id" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Codigo numerico aleatorio para compor chave de acesso  -->
				<xs:element name="cNFS-e" type="TNumAleatorio" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Modelo de uma NFSe -->
				<xs:element name="mod" type="TModelo" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie da nota  -->
				<xs:element name="serie" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota  -->
				<xs:element name="nNFS-e" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Competencia -->
				<xs:element maxOccurs="1" minOccurs="0" name="dEmi" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora de emissao -->
				<xs:element name="hEmi" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Competencia -->
				<xs:element maxOccurs="1" minOccurs="0" name="dCompet" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Tipo de uma NFSe -->
				<xs:element name="tpNF" type="TNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de acesso de uma NFSe -->
				<xs:element name="refNF" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Formato de impressao de uma NFSe: 1-Retrato, 2-Paisagem -->
				<xs:element maxOccurs="1" minOccurs="0" name="tpImp" type="TImpressao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Formato de emissao de uma NFSe: N-Normal, C-Contigencia -->
				<xs:element maxOccurs="1" minOccurs="0" name="tpEmis" type="TEmissao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- NFSe cancelada (S) ou não (N) -->
				<xs:element maxOccurs="1" minOccurs="0" name="cancelada" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Motivo do cancelamento  -->
				<xs:element maxOccurs="1" minOccurs="0" name="motCanc" type="TMotCanc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data do cancelamento -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataCanc" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- NFSe de debito (S) ou nao (N) -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaDebito" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da nota substitutiva da anulada/cancelada -->
				<xs:element maxOccurs="1" minOccurs="0" name="notaSub" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Incluir canhoto na imagem da nota: 0 nao incluir, 1 incluir no topo, 2 incluir no rodape -->
				<xs:element maxOccurs="1" minOccurs="0" name="canhoto" type="TChar0ate2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Ambiente de emissao da NFSe: 1 producao ou 2 homologacao -->
				<xs:element maxOccurs="1" minOccurs="0" name="ambienteEmi" type="TChar1e2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Forma de emissao da NFSe: 1 via Portal, 2 via servicos Web, 3 via upload ou 4 via RPS -->
				<xs:element minOccurs="0" name="formaEmi" type="TChar1ate4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nota de empreitada global: 1 caso seja ou 2 caso contrario -->
				<xs:element maxOccurs="1" minOccurs="0" name="empreitadaGlobal" type="TChar1e2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo de validacao do RPS (USO INTERNO) -->
				<xs:element maxOccurs="1" minOccurs="0" name="codRPS" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero do RPS papel que originou a nota -->
				<xs:element maxOccurs="1" minOccurs="0" name="rps" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Serie do RPS papel que originou a nota  -->
				<xs:element maxOccurs="1" minOccurs="0" name="serierps" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de emissao do RPS papel que originou a nota  -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataEmissaoRpsPapel" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Indica se o sistema deve ou não enviar um e-mail para o tomador  -->
				<xs:element maxOccurs="1" minOccurs="0" name="enviarEmail" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Chave de Acesso da nota fiscal substituida-->
				<xs:element maxOccurs="1" minOccurs="0" name="chaveAcessoSubstituida" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <!-- Municipio do local de prestacao -->
				<xs:element maxOccurs="1" minOccurs="0" name="cLocPrestacao" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Municipio do local de prestacao -->
				<xs:element maxOccurs="1" minOccurs="0" name="cPaisPrestacao" type="tsCodigoPaisIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para a identificacao de um CFSe -->
	<xs:complexType name="IdCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Codigo numerico aleatorio para compor chave de acesso  -->
			<xs:element name="cCFS-e" type="TNumAleatorio" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Serie da nota  -->
			<xs:element name="serie" type="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Numero da nota  -->
			<xs:element name="nCFS-e" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data de emissao -->
			<xs:element name="dEmi" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Hora de emissao -->
			<xs:element name="hEmi" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Chave de acesso de uma NFSe -->
			<xs:element name="refNF" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- NFSe cancelada (S) ou não (N) -->
			<xs:element maxOccurs="1" minOccurs="0" name="cancelada" type="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Motivo do cancelamento  -->
			<xs:element maxOccurs="1" minOccurs="0" name="motCanc" type="TMotCanc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Data do cancelamento -->
			<xs:element maxOccurs="1" minOccurs="0" name="dataCanc" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Ambiente de emissao da NFSe: 1 producao ou 2 homologacao -->
			<xs:element name="ambienteEmi" type="TChar1e2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Forma de emissao da NFSe: 1 via Portal, 2 via servicos Web, 3 via upload ou 4 via RPS -->
			<xs:element name="formaEmi" type="TChar1ate4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>


	<!-- Definicao da estrutura de dados para o emitente de uma NFSe -->
	<xs:element name="prest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ/CPF   -->
				<xs:element name="CNPJ" type="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome ou razao social -->
				<xs:element name="xNome" type="TString150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome fantasia -->
				<xs:element maxOccurs="1" minOccurs="0" name="xFant" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao municipal  -->
				<xs:element name="IM" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- endereço de correio eletrônico do emitente  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xEmail" type="TString50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- URL do site do emitente  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xSite" type="TString50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Endereco do emitente  -->
				<xs:element ref="end" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Fone  -->
				<xs:element maxOccurs="1" minOccurs="0" name="fone" type="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Fone alternativo -->
				<xs:element maxOccurs="1" minOccurs="0" name="fone2" type="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao Estadual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="IE" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Regime tributario  -->
				<xs:element name="regimeTrib" type="TChar1ate3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para endereco de um emitente de uma NFSe -->
	<xs:element name="end" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Logradouro  -->
				<xs:element name="xLgr" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero  -->
				<xs:element name="nro" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Complemento  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xCpl" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Bairro  -->
				<xs:element name="xBairro" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do municipio -->
				<xs:element name="cMun" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do municipio -->
				<xs:element name="xMun" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF -->
				<xs:element name="UF" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CEP  -->
				<xs:element name="CEP" type="TCep" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Pais   -->
				<xs:element name="cPais" type="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Pais  -->
				<xs:element name="xPais" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para tomador de uma NFSe -->
	<xs:element name="TomS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<!-- CNPJ de um contribuinte -->
					<xs:element name="CNPJ" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<!-- CPF de um contribuinte -->
					<xs:element name="CPF" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
				<!-- Nome ou razao social -->
				<xs:element maxOccurs="1" minOccurs="0" name="xNome" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Endereco -->
				<xs:element maxOccurs="1" minOccurs="0" ref="ender" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Endereco de correio eletronico -->
				<xs:element maxOccurs="1" minOccurs="0" name="xEmail" type="TString120" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao Estadual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="IE" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao municipal  -->
				<xs:element maxOccurs="1" minOccurs="0" name="IM" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao municipal eventual -->
				<xs:element maxOccurs="1" minOccurs="0" name="IME" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Fone  -->
				<xs:element maxOccurs="1" minOccurs="0" name="fone" type="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Fone alternativo  -->
				<xs:element maxOccurs="1" minOccurs="0" name="fone2" type="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element minOccurs="0" name="NIF" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número de Identificação Fiscal fornecido por órgão de administração tributária no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para Intermediário de uma NFSe -->
	<xs:element name="intermediario" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<!-- CNPJ de um contribuinte -->
					<xs:element name="CNPJ" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<!-- CPF de um contribuinte -->
					<xs:element name="CPF" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
				<!-- Nome ou razao social -->
				<xs:element maxOccurs="1" minOccurs="0" name="xNome" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao municipal  -->
				<xs:element maxOccurs="1" minOccurs="0" name="IM" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do municipio   -->
				<xs:element maxOccurs="1" minOccurs="0" name="cMun" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do municipio -->
				<xs:element maxOccurs="1" minOccurs="0" name="xMun" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF -->
				<xs:element name="UF" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element minOccurs="0" name="NIF" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número de Identificação Fiscal fornecido por órgão de administração tributária no exterior</xs:documentation>
          </xs:annotation>
        </xs:element>

				<xs:element minOccurs="0" name="end" type="TCEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Dados de endereço</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para tomador de um CFSe -->
	<xs:complexType name="TomSCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">

		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CNPJ de um contribuinte -->
				<xs:element name="CNPJ" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CPF de um contribuinte -->
				<xs:element name="CPF" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
			<!-- Nome ou razao social -->
			<xs:element maxOccurs="1" minOccurs="0" name="xNome" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Endereco de correio eletronico -->
			<xs:element maxOccurs="1" minOccurs="0" name="xEmail" type="TString120" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>


	<!-- Definicao da estrutura de dados para endereco de um tomador de uma NFSe -->
	<xs:element name="ender" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Logradouro  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xLgr" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero  -->
				<xs:element maxOccurs="1" minOccurs="0" name="nro" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Complemento  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xCpl" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Bairro  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xBairro" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do municipio   -->
				<xs:element maxOccurs="1" minOccurs="0" name="cMun" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do municipio -->
				<xs:element maxOccurs="1" minOccurs="0" name="xMun" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF -->
				<xs:element maxOccurs="1" minOccurs="0" name="UF" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CEP -->
				<xs:element maxOccurs="1" minOccurs="0" name="CEP" type="TCep" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo de pais  -->
				<xs:element maxOccurs="1" minOccurs="0" name="cPais" type="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Pais  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xPais" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para endereco de dados da obra -->
	<xs:element name="dadosDaObra" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Protocolo da Obra  -->
				<xs:element maxOccurs="1" minOccurs="0" name="protocoloObra" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo da Vinculacao  -->
				<xs:element maxOccurs="1" minOccurs="0" name="codigoVinculacao" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Logradouro  -->
				<xs:element name="xLogObra" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Complemento  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xComplObra" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vNumeroObra" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Bairro  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xBairroObra" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CEP -->
				<xs:element maxOccurs="1" minOccurs="0" name="xCepObra" type="TCep" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do municipio -->
				<xs:element name="cCidadeObra" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do municipio -->
				<xs:element name="xCidadeObra" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF -->
				<xs:element name="xUfObra" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Pais  -->
				<xs:element name="cPaisObra" type="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do Pais  -->
				<xs:element name="xPaisObra" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da ART em uma NFSe de construcao civil -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroArt" type="TString12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da matricula no CEI em uma NFSe de construcao civil -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroCei" type="TString12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero do projeto em uma NFSe de construcao civil -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroProj" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da matricula em uma NFSe de construcao civil -->
				<xs:element maxOccurs="1" minOccurs="0" name="numeroMatri" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Código do Cadastro Imobiliário Brasileiro - CIB  -->
				<xs:element maxOccurs="1" minOccurs="0" name="cCIB" type="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para transportadora -->
	<xs:element name="transportadora" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Nome da transportadora  -->
				<xs:element name="xNomeTrans" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- CPF/CNPJ da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xCpfCnpjTrans" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao Estadual da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xInscEstTrans" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Placa do automovel da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xPlacaTrans" type="TPlacaVeic" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Endereco da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="xEndTrans" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Municipio da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="cMunTrans" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do Municipio da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="xMunTrans" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="xUfTrans" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Pais da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="cPaisTrans" type="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do Pais da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="xPaisTrans" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Tipo do frete  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vTipoFreteTrans" type="TFrete" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para detalhe do servico de uma NFSe -->
	<xs:element name="det" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Ordem sequencial do item na nota  -->
				<xs:element name="nItem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element ref="serv" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ISSST" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes do estacionamento -->
				<xs:element maxOccurs="1" minOccurs="0" ref="estacionamento" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes do hotel -->
				<xs:element maxOccurs="1" minOccurs="0" ref="hospedagem" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Detalhes do dependente -->
				<xs:element maxOccurs="1" minOccurs="0" ref="dependente" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Grupo de informações relativas à atividades de eventos -->
				<xs:element maxOccurs="1" minOccurs="0" name="atvEvento" type="TCAtvEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações do DPS relativas à Evento</xs:documentation>
					</xs:annotation>
      	</xs:element>

				<xs:element maxOccurs="1" minOccurs="0" name="IBSCBS" type="TCRTCInfoIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para reembolso do servico de uma NFSe -->
	<xs:element name="reembolso" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="nItem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroTitulo" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="descricao" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="unidade" type="TString2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="quantidade" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="vRetencao" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="vRepasseTerceiros" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="vDesc" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="vTotal" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="vLiq" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="tipoPagamento" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroLote" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="codigoReembolso" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="dataPagamento" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="tipoChaveDFe" type="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="xTipoChaveDFe" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="chaveDFe" type="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="cMunDocFiscal" type="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCPF" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCNPJ" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorNif" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCodNaoNif" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
				<xs:choice minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element name="tipoReeRepRes" type="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element name="tipoAjusteBC" type="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
				<xs:element maxOccurs="1" minOccurs="0" name="xTipoReeRepRes" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="dEmissao" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="dCompetencia" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="vTotDoc" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para detalhe do servico de um CFSe -->
	<xs:complexType name="detCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Ordem sequencial do item na nota  -->
			<xs:element name="nItem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="serv" type="servCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>


	<!-- Definicao da estrutura de dados para detalhe de item de servico de um CFSe -->
	<xs:element name="serv" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Codigo municipal do servico  -->
				<xs:element name="cServ" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do servico conforme Lei 116  -->
				<xs:element maxOccurs="1" minOccurs="0" name="cLCServ" type="TLCServ" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Descricao do serviço  -->
				<xs:element name="xServ" type="TString1000" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Local de tributação do servico -->
				<xs:element maxOccurs="1" minOccurs="0" name="localTributacao" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Local da verificação do resultado do servico  -->
				<xs:element maxOccurs="1" minOccurs="0" name="localVerifResServ" type="TChar1e2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Unidade do servico  -->
				<xs:element name="uTrib" type="TString6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Quantidade do servico -->
				<xs:element name="qTrib" type="TDec_1304" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor unitario -->
				<xs:element name="vUnit" type="TDec_1306" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor do servico -->
				<xs:element name="vServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor de desconto -->
				<xs:element maxOccurs="1" minOccurs="0" name="vDesc" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor de dedução -->
				<xs:element maxOccurs="1" minOccurs="0" name="vDed" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de ISSQN  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Aliquota do ISSQN -->
				<xs:element maxOccurs="1" minOccurs="0" name="pISS" type="TDec_0304" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor do ISSQN -->
				<xs:element maxOccurs="1" minOccurs="0" name="vISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de retencao de INSS  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCINSS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Percentual de retencao de INSS do item de servico  -->
				<xs:element maxOccurs="1" minOccurs="0" name="pRetINSS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor de retencao de INSS do item de servico  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetINSS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor de redução da base de calculo  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRed" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo da retencao de IR  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCRetIR" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Percentual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="pRetIR" type="TDec_0302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetIR" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de retencao de COFINS  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCCOFINS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Percentual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="pRetCOFINS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetCOFINS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de retencao de CSLL  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCCSLL" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Percentual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="pRetCSLL" type="TDec_0302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetCSLL" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de retencao de PIS-PASEP  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCPISPASEP" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Percentual  -->
				<xs:element maxOccurs="1" minOccurs="0" name="pRetPISPASEP" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetPISPASEP" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor outras retenções -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetOutrasRet" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total Aproximado de tributos federais -->
				<xs:element maxOccurs="1" minOccurs="0" name="totalAproxTribServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero do Pedido -->
				<xs:element maxOccurs="1" minOccurs="0" name="xPed" type="TString50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero Item do Pedido -->
				<xs:element maxOccurs="1" minOccurs="0" name="nItemPed" type="TString50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Classificacao tributaria do PIS/COFINS -->
				<xs:element minOccurs="0" name="CSTPisCofins" type="TSTipoCST" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
                Código de Situação Tributária do PIS/COFINS (CST):
                00 - Nenhum;
                01 - Operação Tributável com Alíquota Básica;
                02 - Operação Tributável com Alíquota Diferenciada;
                03 - Operação Tributável com Alíquota por Unidade de Medida de Produto;
                04 - Operação Tributável monofásica - Revenda a Alíquota Zero;
                05 - Operação Tributável por Substituição Tributária;
                06 - Operação Tributável a Alíquota Zero;
                07 - Operação Tributável da Contribuição;
                08 - Operação sem Incidência da Contribuição;
                09 - Operação com Suspensão da Contribuição;
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<!-- Tipo de retencao PIS/COFINS -->
				<xs:element maxOccurs="1" minOccurs="0" name="tpRetPisCofins" type="TSTipoRetPISCofins" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Tipo de retenção do PIS/COFINS/CSLL:
							0 - PIS/COFINS/CSLL Não Retidos;
							1 - PIS/COFINS Retido;
							2 - PIS/COFINS Não Retido;
							3 - PIS/COFINS/CSLL Retidos;
							4 - PIS/COFINS Retidos, CSLL Não Retido;
							5 - PIS Retido, COFINS/CSLL Não Retido;
							6 - COFINS Retido, PIS/CSLL Não Retido;
							7 - PIS Não Retido, COFINS/CSLL Retidos;
							8 - PIS/COFINS Não Retidos, CSLL Retido;
							9 - COFINS Não Retido, PIS/CSLL Retidos;
						</xs:documentation>
					</xs:annotation>
				</xs:element>

				<!-- Codigo da NBS -->
				<xs:element maxOccurs="1" minOccurs="0" name="cNBS" type="tsCodigoNbs" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

			</xs:sequence>
		</xs:complexType>
	</xs:element>



	<!-- Definicao da estrutura de dados para detalhe de item de servico de um CFSe -->
	<xs:complexType name="servCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Codigo municipal do servico  -->
			<xs:element name="cServ" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Codigo do servico conforme Lei 116  -->
			<xs:element maxOccurs="1" minOccurs="0" name="cLCServ" type="TLCServ" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Descricao do serviço  -->
			<xs:element name="xServ" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Unidade do servico  -->
			<xs:element name="uTrib" type="TString2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Quantidade do servico -->
			<xs:element name="qTrib" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor unitario -->
			<xs:element name="vUnit" type="TDec_1304" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor do servico -->
			<xs:element name="vServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor da base de calculo de ISSQN  -->
			<xs:element maxOccurs="1" minOccurs="0" name="vBCISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Aliquota do ISSQN -->
			<xs:element maxOccurs="1" minOccurs="0" name="pISS" type="TDec_0302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor do ISSQN -->
			<xs:element maxOccurs="1" minOccurs="0" name="vISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor total Aproximado de tributos federais -->
			<xs:element maxOccurs="1" minOccurs="0" name="totalAproxTribServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>


	<!-- Definicao da estrutura de dados para informações do ISS por substituicao tributaria em uma NFSe  -->
	<xs:element name="ISSST" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Valor da reducao da base de calculo  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRedBCST" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo por substituicao tributaria -->
				<xs:element name="vBCST" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Aliquota do ISSQN por substituicao tributaria -->
				<xs:element name="pISSST" type="TDec_0304" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor do ISSQN por substituicao tributaria -->
				<xs:element name="vISSST" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para detalhe das despesas adicionais de uma NFSe -->
	<xs:element name="despesas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Ordem sequencial das despesas  -->
				<xs:element maxOccurs="999" minOccurs="0" ref="despesa" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>



	<!-- Definicao da estrutura de dados para informações de despesas adicionais na NFSe  -->
	<xs:element name="despesa" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="1" name="nItemDesp" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroTitulo" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="xDesp" type="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="dDesp" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="1" name="vDesp" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="tipoChaveDFe" type="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="xTipoChaveDFe" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="chaveDFe" type="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="cMunDocFiscal" type="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCPF" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCNPJ" type="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorNif" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorCodNaoNif" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="fornecedorNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="dCompetencia" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
				<xs:choice minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:element name="tipoReeRepRes" type="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
					<xs:element name="tipoAjusteBC" type="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				</xs:choice>
				<xs:element maxOccurs="1" minOccurs="0" name="xTipoReeRepRes" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

				<xs:element maxOccurs="1" minOccurs="0" name="vTotDoc" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>




	<!-- Definicao da estrutura de dados para totalizacoes em uma NFSe  -->
	<xs:element name="total" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Valor total de servico  -->
				<xs:element name="vServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de reembolso -->
				<xs:element maxOccurs="1" minOccurs="0" name="vReemb" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da reducao da base de calculo da construcao civil  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRedBCCivil" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de desconto -->
				<xs:element maxOccurs="1" minOccurs="0" name="vDesc" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de desconto -->
				<xs:element maxOccurs="1" minOccurs="0" name="vDescCondicional" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de desconto de ICMS -->
				<xs:element maxOccurs="1" minOccurs="0" name="vDescICMS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de dedução -->
				<xs:element maxOccurs="1" minOccurs="0" name="vtDed" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total da nota  -->
				<xs:element name="vtNF" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor liquido total da nota -->
				<xs:element name="vtLiq" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total Aproximado de tributos federais -->
				<xs:element maxOccurs="1" minOccurs="0" name="totalAproxTrib" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Totalizacoes das retencoes federais na nota -->
				<xs:element maxOccurs="1" minOccurs="0" ref="Ret" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor liquido total das faturas -->
				<xs:element maxOccurs="1" minOccurs="0" name="vtLiqFaturas" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor liquido total das Despesas -->
				<xs:element maxOccurs="1" minOccurs="0" name="vtDespesas" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Totalizacoes do ISS -->
				<xs:element ref="ISS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para totalizacoes em um CFSe  -->
	<xs:complexType name="totalCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Valor total de servico  -->
			<xs:element name="vServ" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor total da nota  -->
			<xs:element name="vtNF" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor liquido total da nota -->
			<xs:element name="vtLiq" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor total Aproximado de tributos federais -->
			<xs:element maxOccurs="1" minOccurs="0" name="totalAproxTrib" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Totalizacoes do ISS -->
			<xs:element name="ISS" type="ISSCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>


	<!-- Definicao da estrutura de dados para valores do ISSQN em um CFSe  -->
	<xs:complexType name="ISSCupom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Valor da base de calculo de ISSQN  -->
			<xs:element name="vBCISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- Valor do ISSQN  -->
			<xs:element name="vISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<!-- Definicao da estrutura de dados para valores do ISSQN em uma NFSe  -->
	<xs:element name="ISS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Valor da base de calculo de ISSQN  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor do ISSQN  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da base de calculo de ISSQN por substituicao tributaria  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vBCSTISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor do ISSQN por substituicao tributaria  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vSTISS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para retencoes em uma NFSe  -->
	<xs:element name="Ret" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Valor total da retencao de IR -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetIR" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total da retencao de PIS-PASEP -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetPISPASEP" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total da retencao de COFINS -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetCOFINS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total da retencao de CSLL -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetCSLL" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total da retencao de INSS  -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetINSS" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor total de outras retenções -->
				<xs:element maxOccurs="1" minOccurs="0" name="vRetOutrasRet" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para informacoes de faturas em uma NFSe  -->
	<xs:element name="faturas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="999" minOccurs="1" ref="fat" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para informacoes sobre faturas em uma NFSe  -->
	<xs:element name="fat" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Ordenacao da fatura  -->
				<xs:element name="nItem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Numero da fatura  -->
				<xs:element name="nFat" type="TNumFatura" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de vencimento   -->
				<xs:element maxOccurs="1" minOccurs="0" name="dVenc" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Valor da fatura  -->
				<xs:element name="vFat" type="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Tipo vencimento fatura  -->
				<xs:element maxOccurs="1" minOccurs="0" name="tipoVencFat" type="TChar1ate9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Descrição tipo vencimento fatura  -->
				<xs:element maxOccurs="1" minOccurs="0" name="descTipoVencFat" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para o emitente de uma NFSe -->
	<xs:element name="estacionamento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Placa do Veículo   -->
				<xs:element name="xPlaca" type="TPlacaVeic" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Entrada   -->
				<xs:element name="dDataInicial" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora de Entrada   -->
				<xs:element name="hHoraInicial" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Saída     -->
				<xs:element name="dDataFinal" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora de Saída     -->
				<xs:element name="hHoraFinal" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para a rede hoteleira da NFSe -->
	<xs:element name="hospedagem" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Número do quarto   -->
				<xs:element name="unidade" type="TString12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Número do quarto   -->
				<xs:element name="qtdHospede" type="TQtdHospedes" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Entrada   -->
				<xs:element name="dDataEntrada" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora de Entrada   -->
				<xs:element name="hHoraEntrada" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Saída     -->
				<xs:element name="dDataSaida" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Hora de Saída     -->
				<xs:element name="hHoraSaida" type="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para dependente no item da NFSe -->
	<xs:element name="dependente" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- Nome do dependente   -->
				<xs:element maxOccurs="1" minOccurs="1" name="nome" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Cpf do dependente   -->
				<xs:element maxOccurs="1" minOccurs="0" name="cpf" type="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Data de Nascimento do dependente  -->
				<xs:element maxOccurs="1" minOccurs="0" name="dataNascimento" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para evento no item da NFSe -->
	<xs:complexType name="TCAtvEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="xNome" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Descrição do evento Artístico, Cultural, Esportivo, etc</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtIni" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Data de início da atividade de evento. Ano, Mês e Dia (AAAA-MM-DD)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtFim" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Data de fim da atividade de evento. Ano, Mês e Dia (AAAA-MM-DD)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="end" type="TCEnderecoSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações relativas ao endereço da atividade, evento ou local do serviço prestado</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:element name="corrigirNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="cartaCorrecao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="corrigirNFSeRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="cartaCorrecao" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados da Nota Nacional -->
	<xs:element name="notaNacional" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="chaveAcessoNacional" type="TChaveAcessoNac" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="numero" type="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="cTribNac" type="TString6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="cTribMun" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="IBSCBS" type="TCRTCIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados da carta de correcao -->
	<xs:element name="cartaCorrecao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element ref="idCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="tomadorCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="construcaoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="transportadoraCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="servicosCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="faturasCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="observacoesCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" ref="ds:Signature" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para id da carta de correção -->
	<xs:element name="idCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="chaveAcesso" type="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="cnpjCpf" type="TString14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para tomador da carta de correcao -->
	<xs:element name="tomadorCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" name="email" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="telefone" type="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="inscricaoMunicipal" type="TString30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="inscricaoEstadual" type="TString30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="cep" type="TCep" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="logradouro" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroLogradouro" type="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="bairro" type="TString80" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para observacao da carta de correção -->
	<xs:element name="construcaoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="1" minOccurs="0" name="numeroART" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroCEI" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroMatricula" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numeroProjeto" type="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para transportadora da carta de correcao -->
	<xs:element name="transportadoraCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<!-- CPF/CNPJ da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="cnpjCpf" type="TString14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="nome" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Inscricao Estadual da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="inscricaoEstadual" type="TString30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Placa do automovel da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="placaVeiculo" type="TPlacaVeic" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Endereco da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="endereco" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do Municipio da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="nomeCidade" type="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Municipio da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="codigoCidade" type="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- UF da transportadora  -->
				<xs:element maxOccurs="1" minOccurs="0" name="uf" type="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Nome do Pais da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="nomePais" type="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Codigo do Pais da transportadora -->
				<xs:element maxOccurs="1" minOccurs="0" name="codigoPais" type="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<!-- Tipo do frete  -->
				<xs:element maxOccurs="1" minOccurs="0" name="tipoFrete" type="TFrete" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para informacoes de servicos da carta de correcao -->
	<xs:element name="servicosCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="999" minOccurs="0" ref="servicoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para servico da carta de correcao -->
	<xs:element name="servicoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="ordem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="descricao" type="TString500" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para informacoes de faturas da carta de correcao -->
	<xs:element name="faturasCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="999" minOccurs="0" ref="faturaCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- Definicao da estrutura de dados para fatura da carta de correção -->
	<xs:element name="faturaCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="ordem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="numero" type="TNumFatura" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element maxOccurs="1" minOccurs="0" name="dataVencimento" type="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para informacoes de observacoes da carta de correcao -->
	<xs:element name="observacoesCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element maxOccurs="999" minOccurs="0" ref="observacaoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<!-- Definicao da estrutura de dados para observacao da carta de correção -->
	<xs:element name="observacaoCC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="ordem" type="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="descricao" type="TString500" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


	<!-- *********************************************************** -->
	<!-- Definicao dos tipos de dados básicos da NFSe                -->


	<!-- Tipo para Codigo Postal  -->
	<xs:simpleType name="TCep" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para Codigo Postal</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{8}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para Caracter 0 e 1  -->
	<xs:simpleType name="TChar0e1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-2]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para Caracter 1 e 2  -->
	<xs:simpleType name="TChar1e2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-2]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para Caracter 1,2,3,4,5,6  -->
	<xs:simpleType name="TChar1ate6" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-6]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para Caracter 1,2,3,4  -->
	<xs:simpleType name="TChar1ate4" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-4]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para Caracter 1,2,3,4,5,6,7,8,9  -->
	<xs:simpleType name="TChar1ate9" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-9]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para Caracter 1,2,3  -->
	<xs:simpleType name="TChar1ate3" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[1-3]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para Caracter 0,1,2 -->
	<xs:simpleType name="TChar0ate2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para caracter numerico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-2]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para chave de acesso de uma NFSe  -->
	<xs:simpleType name="TChaveAcesso" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para chave de acesso   </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="39" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para chave de acesso de uma NFSe Nacional  -->
	<xs:simpleType name="TChaveAcessoNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para chave de acesso Nacional  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Número do CNPJ  -->
	<xs:simpleType name="TCnpj" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CNPJ</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{14}|[0-9A-Z]{12}[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType><!-- Tipo Número do CNPJ/CPF  -->
	<xs:simpleType name="TCnpjCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CNPJ/CPF</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{11}|[0-9]{14}|[0-9A-Z]{12}[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Código do Município da tabela do IBGE   -->
	<xs:simpleType name="TCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Código do Município da tabela do IBGE</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{7}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para codigo do pais -->
	<xs:simpleType name="TcPais" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para Codigo do Pais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{1,5}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="tsCodigoPaisIbge" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:length value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>

	</xs:simpleType>

	<!-- Tipo Número do CPF  -->
	<xs:simpleType name="TCpf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CPF</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{11}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo data no formato AAAA-MM-DD  -->
	<xs:simpleType name="TData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema"> Tipo data AAAA-MM-DD</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="\d{4}-\d{2}-\d{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo data no formato AAAA-MM-DD HH:MM:SS -->
	<xs:simpleType name="TDataHora" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema"> Tipo datetime AAAA-MM-DD HH:MM:SS</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2}:\d{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Decimal com 5 dígitos, sendo 3 de corpo e 2 decimais   -->
	<xs:simpleType name="TDec_0302" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Decimal com 5 dígitos, sendo 3 de corpo e 2 decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="|0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo Decimal com 5 dígitos, sendo 3 de corpo e 4 decimais   -->
	<xs:simpleType name="TDec_0304" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Decimal com 5 dígitos, sendo 3 de corpo e 4 decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="|0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais   -->
	<xs:simpleType name="TDec_1302" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="|0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Decimal com 15 dígitos, 4 decimais   -->
	<xs:simpleType name="TDec_1304" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor com possível 4 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="|0|0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2,4})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Decimal com 15 dígitos, 6 decimais   -->
	<xs:simpleType name="TDec_1306" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor com possível 6 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="|0|0\.[0-9]{2,6}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2,6})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para forma de emissao de uma NFSe: N-Normal, C-Contigencia -->
	<xs:simpleType name="TEmissao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para forma de emissao  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[NC]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para numero do telefone -->
	<xs:simpleType name="TFone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para numero do telefone  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="|[0-9]{8,15}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para frete de transportadora -->
	<xs:simpleType name="TFrete" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para frete de transportadora  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-1]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo hora no formato HH:MM -->
	<xs:simpleType name="THora" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema"> Tipo time HH:MM</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="\d{2}:\d{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para formato de impressao de uma NFSe: 1-Retrato, 2-Paisagem -->
	<xs:simpleType name="TImpressao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para formato de impressao   </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Em Caxias uma NFSe somente pode ser impressa no modo retrato  -->
			<xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para Lei Complementar 116 -->
	<xs:simpleType name="TLCServ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para Lei Complementar 116 </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{3,4}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para modelo de uma NFSe -->
	<xs:simpleType name="TModelo" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para modelo de uma NFSe   </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para motivo de cancelamento  -->
	<xs:simpleType name="TMotCanc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para motivo de cancelamento</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Número do Documento Fiscal  -->
	<xs:simpleType name="TNF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do Documento Fiscal</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{1,9}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para numeros inteiros   -->
	<xs:simpleType name="TNum" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para numero inteiro</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		</xs:restriction>
	</xs:simpleType>


	<!-- Tipo para uma NFSe -->
	<xs:simpleType name="TNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para uma NFSe   </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- Em Caxias uma NFSe somente pode ser de Saída  -->
			<xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para numero aleatorio -->
	<xs:simpleType name="TNumAleatorio" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para numero aleatorio </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="999999999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo Número de Fatura  -->
	<xs:simpleType name="TNumFatura" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número de Fatura em NFS-e</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para ordem sequencial de itens -->
	<xs:simpleType name="TOrdemSeq" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para ordem sequencial de itens </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="9999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para placa de veiculo: String de tamanho maximo 7   -->
	<xs:simpleType name="TPlacaVeic" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo String para placa de veiculo com tamanho maximo 7</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para serie de notas: String para serie de nota   -->
	<xs:simpleType name="TSerie" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para serie de nota </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para Sim/Nao -->
	<xs:simpleType name="TSimNao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para Sim/Nao  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[SN]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para situacao do cancelamento de uma NFSe -->
	<xs:simpleType name="TSituacaoCancelamentoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para situacao de cancelamento de uma NFSe </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para situacao de um lote de NFSe -->
	<xs:simpleType name="TSituacaoLote" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para situacao de um lote de NFSe </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para situacao de um lote de NFSe -->
	<xs:simpleType name="TQtdHospedes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para quantidade de hospedes</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para situacao de uma NFSe -->
	<xs:simpleType name="TSituacaoNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para situacao de uma NFSe </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:pattern value="[0-9]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para situacao de uma nota dentro de um lote submetido -->
	<xs:simpleType name="TSituacaoNota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para situacao de uma nota dentro de um lote submetido </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:positiveInteger" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxInclusive value="999" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 2   -->
	<xs:simpleType name="TString2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 2</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 3   -->
	<xs:simpleType name="TString3" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 3</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 5   -->
	<xs:simpleType name="TString5" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 5</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 6   -->
	<xs:simpleType name="TString6" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 6</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 8   -->
	<xs:simpleType name="TString8" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 8</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo string para Codigo NBS  -->
	<xs:simpleType name="tsCodigoNbs" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo string para Codigo NBS</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:whiteSpace value="collapse" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 12   -->
	<xs:simpleType name="TString12" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 12</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="12" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 13   -->
	<xs:simpleType name="TString13" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 13</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="13" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 14   -->
	<xs:simpleType name="TString14" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 14</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 15   -->
	<xs:simpleType name="TString15" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 15</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 20   -->
	<xs:simpleType name="TString20" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 20</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="20" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 30   -->
	<xs:simpleType name="TString30" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 30</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 50   -->
	<xs:simpleType name="TString50" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 50</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 60   -->
	<xs:simpleType name="TString60" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 60</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 80   -->
	<xs:simpleType name="TString80" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 80</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="80" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 100   -->
	<xs:simpleType name="TString100" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 100</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="100" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 120   -->
	<xs:simpleType name="TString120" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 120</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="120" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 150   -->
	<xs:simpleType name="TString150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 150</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<!-- Tipo para string com tamanho maximo 256   -->
	<xs:simpleType name="TString256" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 256</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="256" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 500   -->
	<xs:simpleType name="TString500" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 500</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="500" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com tamanho maximo 1000   -->
	<xs:simpleType name="TString1000" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho maximo 10000</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:maxLength value="1000" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string sem tamanho indefinido   -->
	<xs:simpleType name="TString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string de tamanho indefinido</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com formato Base64   -->
	<xs:simpleType name="TStringBase64" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo para string a ser usado com o formato Base64</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TDataAnoMes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema"> Tipo data yyyyMM</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{4}[0-2]{1}[0-9]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Tipo para string com formato Base64   -->
	<xs:simpleType name="TUf" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo aceito para estado</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:enumeration value="EX" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AL" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AM" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="AP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="BA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="CE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="DF" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="ES" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="GO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MG" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="MT" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PA" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PB" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PI" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="PR" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RJ" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RN" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RR" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="RS" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="SP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="TO" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSituacaoExportaNota" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo aceito para situacao da nota</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<!-- todas -->
			<xs:enumeration value="T" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- corrigidas -->
			<xs:enumeration value="CR" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- nao canceladas -->
			<xs:enumeration value="NC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<!-- canceladas -->
			<xs:enumeration value="C" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

  <xs:simpleType name="TSTipoCST" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          Código de Situação Tributária do PIS/COFINS (CST):
          00 - Nenhum;
          01 - Operação Tributável com Alíquota Básica;
          02 - Operação Tributável com Alíquota Diferenciada;
          03 - Operação Tributável com Alíquota por Unidade de Medida de Produto;
          04 - Operação Tributável monofásica - Revenda a Alíquota Zero;
          05 - Operação Tributável por Substituição Tributária;
          06 - Operação Tributável a Alíquota Zero;
          07 - Operação Isenta da Contribuição;
          08 - Operação sem Incidência da Contribuição;
          09 - Operação com Suspensão da Contribuição;
          49 - Outras Operações de Saída;
          50 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Tributada no Mercado Interno;
          51 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno;
          52 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita de Exportação;
          53 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno;
          54 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas no Mercado Interno e de Exportação;
          55 - Operação com Direito a Crédito – Vinculada a Receitas Não Tributadas no Mercado Interno e de Exportação;
          56 - Operação com Direito a Crédito – Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação;
          60 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno;
          61 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno;
          62 - Crédito Presumido – Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação;
          63 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno;
          64 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação;
          65 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Não Tributadas no Mercado Interno e de Exportação;
          66 - Crédito Presumido – Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação;
          67 - Crédito Presumido – Outras Operações;
          70 - Operação de Aquisição sem Direito a Crédito;
          71 - Operação de Aquisição com Isenção;
          72 - Operação de Aquisição com Suspensão;
          73 - Operação de Aquisição a Alíquota Zero;
          74 - Operação de Aquisição sem Incidência da Contribuição;
          75 - Operação de Aquisição por Substituição Tributária;
          98 - Outras Operações de Entrada;
          99 - Outras Operações;
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="00" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="05" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="06" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="07" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="08" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="09" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="49" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="51" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="52" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="53" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="54" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="55" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="56" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="61" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="62" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="63" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="64" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="65" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="66" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="67" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="70" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="71" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="72" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="73" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="74" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="75" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="98" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:restriction>
  </xs:simpleType>

	<xs:simpleType name="TSTipoRetPISCofins" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Tipo de retenção do PIS/COFINS/CSLL:
        0 - PIS/COFINS/CSLL Não Retidos;
        1 - PIS/COFINS Retido;
        2 - PIS/COFINS Não Retido;
        3 - PIS/COFINS/CSLL Retidos;
        4 - PIS/COFINS Retidos, CSLL Não Retido;
        5 - PIS Retido, COFINS/CSLL Não Retido;
        6 - COFINS Retido, PIS/CSLL Não Retido;
        7 - PIS Não Retido, COFINS/CSLL Retidos;
        8 - PIS/COFINS Não Retidos, CSLL Retido;
        9 - COFINS Não Retido, PIS/CSLL Retidos;
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:restriction>
  </xs:simpleType>

	<xs:simpleType name="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="40" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSRTCFinNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Indicador da finalidade da emissão de NFS-e:
        0 - NFS-e regular;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCIndFinal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Indica operação de uso ou consumo pessoal (art. 57):
      0 - Não;
      1 - Sim;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodIndOp" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Código indicador da operação de fornecimento, conforme tabela "código indicador de operação"
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpOper" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Tipo de Operação com Entes Governamentais ou outros serviços sobre bens imóveis:
      1 – Fornecimento com pagamento posterior;
      2 - Recebimento do pagamento com fornecimento já realizado;
      3 – Fornecimento com pagamento já realizado;
      4 – Recebimento do pagamento com fornecimento posterior;
      5 – Fornecimento e recebimento do pagamento concomitantes;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSChaveNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Chave da Nota Fiscal de Serviço Eletrônica</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{50}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpEnteGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Tipo de ente governamental
      Para administração pública direta e suas autarquias e fundações:
      1 - União;
      2 - Estado;
      3 - Distrito Federal;
      4 - Município;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="4" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCIndDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      A respeito do Destinatário dos serviços:
      0 – o destinatário é o próprio tomador/adquirente identificado na NFS-e (tomador = adquirente = destinatário);
      1 – o destinatário não é o próprio adquirente, podendo ser outra pessoa, física ou jurídica (ou equiparada), ou um estabelecimento diferente do indicado como tomador (tomador = adquirente ≠ destinatário);
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
      Número do telefone do prestador:
      Preencher com o Código DDD + número do telefone.
      Nas operações com exterior é permitido informar o código do país + código da localidade + número do telefone
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6,20}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="80" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CNPJ</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="14" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{14}|[0-9A-Z]{12}[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Número do CPF</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{11}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Motivo para não informação do NIF:
        0 - Não informado na nota de origem;
        1 - Dispensado do NIF;
        2 - Não exigência do NIF;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodPaisISO" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Código do País segundo tabela ISO</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[A-Z]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo Código do Município segundo tabela IBGE</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{7}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:length value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código de Situação Tributária
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{3}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código de Classificação Tributária
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{6}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCCodCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Código e Classificação do Crédito Presumido
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{2}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 a 3 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Documento fiscal a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional:
        1 - NFS-e;
        2 - NF-e;
        3 - CT-e;
        9 - Outro;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Chave do Documento Fiscal Eletrônico
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="50" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número com 7 dígitos</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{7}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Tipo de valor incluído neste documento, recebido por motivo de estarem relacionadas a operações de terceiros,
        objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
        01 - Repasse de remuneração por intermediação de imóveis a demais corretores envolvidos na operação;
        02 - Repasse de valores a fornecedor relativo a fornecimento intermediado por agência de turismo;
        03 - Reembolso ou ressarcimento recebido por agência de propaganda e publicidade por valores pagos relativos 
             a serviços de produção externa por conta e ordem de terceiro;
        04 - Reembolso ou ressarcimento recebido por agência de propaganda e publicidade por valores pagos relativos 
             a serviços de mídia por conta e ordem de terceiro;
        99 - Outros reembolsos ou ressarcimentos recebidos por valores pagos relativos a operações por conta e ordem de terceiro;
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="01" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="02" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="03" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="04" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo de ajuste da base de calculo (NT 009 v1.01): 2 Materiais; 5 Repasse consorciado; 6 Repasse plano de saude; 7 Servicos; 8 Subempreitada de mao de obra; 9 Profissional parceiro; 99 Outras deducoes exclusivas do ISSQN; 101 a 104 e 199 reembolso/repasse/ressarcimento (equivalem a 01 a 04 e 99 do NT 004); 105 Glosa de servicos de saude. Os tipos 2 a 99 e 105 sao recusados pela emissao do municipio (DPS_E070/DPS_E071).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="6" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="7" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="8" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="9" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="99" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="101" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="102" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="103" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="104" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="105" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:enumeration value="199" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 a 15 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,14}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo data no formato AAAA-MM-DD</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>


	<!-- TIPOS COMPLEXOS IBS CBS -->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="finNFSe" type="TSRTCFinNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Indicador da finalidade da emissão de NFS-e
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="indFinal" type="TSRTCIndFinal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Indica operação de uso ou consumo pessoal (art. 57)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cIndOp" type="TSRTCCodIndOp" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Código indicador da operação de fornecimento, conforme tabela "código indicador de operação"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="tpOper" type="TSRTCTpOper" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Tipo de Operação com Entes Governamentais ou outros serviços sobre bens imóveis
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gRefNFSe" type="TCInfoRefNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Grupo de NFS-e referenciadas
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="tpEnteGov" type="TSRTCTpEnteGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Tipo de ente governamental
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="indDest" type="TSRTCIndDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							A respeito do Destinatário dos serviços
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="dest" type="TCRTCInfoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Grupo de informações relativas ao Destinatário
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="imovel" type="TCRTCInfoImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Grupo de informações de operações relacionadas a bens imóveis, exceto obras
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="valores" type="TCRTCInfoValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Grupo de informações relativas aos valores do serviço prestado para IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCInfoRefNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="99" name="refNFSe" type="TSChaveNFSe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
								Chave da NFS-e referenciada
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCInfoDest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CNPJ" type="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
									Número da inscrição no Cadastro Nacional de Pessoa Jurídica (CNPJ) do Destinatário do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CPF" type="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
									Número da inscrição no Cadastro de Pessoa Física (CPF) do Destinatário do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="NIF" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
									Número de Identificação Fiscal fornecido por órgão de administração tributária no exterior
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="cNaoNIF" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
									Motivo para não informação do NIF:
									0 - Não informado na nota de origem;
									1 - Dispensado do NIF;
									2 - Não exigência do NIF;
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
								Nome / Nome Empresarial do do Destinatário do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="end" type="TCEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
								Grupo de informações do endereço do Destinatário do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="fone" type="TSTelefone" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
								Número do telefone do Destinatário do serviço
								(Preencher com o Código DDD + número do telefone. Nas operações com exterior é permitido informar o
								código do país + código da localidade + número do telefone)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="email" type="TSEmail" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">E-mail do Destinatário do serviço</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Inscrição imobiliária fiscal (código fornecido pela Prefeitura Municipal para a identificação da obra ou para fins de recolhimento do IPTU)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cCIB" type="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Código do Cadastro Imobiliário Brasileiro - CIB
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="end" type="TCEnderObraEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
							Grupo de informações do endereço da obra do serviço prestado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cMun" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element maxOccurs="99" minOccurs="0" name="gUnidImob" type="TCRTCUnidadesImobiliariasEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>

	<!--TIPO COMPLEXO PARA ENDEREÇO DE OBRA-->
	<xs:complexType name="TCEnderObraEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element minOccurs="1" name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="1" name="endExt" type="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="endNac" type="TCEnderNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço nacional</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="endExt" type="TCEnderExt" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCEnderExt" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cPais" type="TSCodPaisISO" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código do país (Tabela de Países ISO)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cEndPost" type="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código alfanumérico do Endereçamento Postal no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xCidade" type="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Nome da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xEstProvReg" type="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCEnderNac" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cMun" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código do município, conforme Tabela do IBGE</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<!--TIPO COMPLEXO INFORMAÇÕES RELATIVAS AOS VALORES DO SERVIÇO PRESTADO IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="gReeRepRes" type="TCRTCInfoReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	            Grupo de informações relativas a valores incluídos neste documento e recebidos por motivo de estarem relacionadas 
	            a operações de terceiros, objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="vAjusteBC" type="TCInfoAjusteBCEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
			<xs:element name="trib" type="TCRTCInfoTributosIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionados aos tributos IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO INFORMAÇÕES RELATIVAS AOS VALORES DE REEMBOLSO REPASSE OU RESSARCIMENTO IBSCBS-->
	<!-- Leiaute NT 009 v1.01 (task #167989): ajuste de base por documentos e unidade imobiliaria. Exclusividade com o NT 004 validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCInfoAjusteBCEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de ajuste da base de calculo por documentos (NT 009). O ajuste monetario do ISSQN usa o campo de deducao proprio do layout.</xs:documentation>
		</xs:annotation>
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="documentos" type="TCListaDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCListaDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1000" minOccurs="1" name="docAjusteBC" type="TCDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCDocAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="tpAjusteBC" type="TSRTCTpAjusteBC" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xTpAjusteBC" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="vTotDoc" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="vAjusteAplic" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="dtEmiDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="dtCompDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="dFeNacional" type="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="docFiscalOutro" type="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="docOutro" type="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
			<xs:element minOccurs="0" name="fornec" type="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCUnidadesImobiliariasEntrada" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="inscImobFisc" type="TSInscImobFisc" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="cCIB" type="TSCodCIB" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
				<xs:element name="end" type="TCEnderImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCEnderImovel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCInfoReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element maxOccurs="1000" minOccurs="1" name="documentos" type="TCRTCListaDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo relativo aos documentos referenciados nos casos de reembolso, repasse e ressarcimento que serão 
            considerados na base de cálculo do ISSQN, do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO INFORMAÇÕES RELACIONADOS AOS TRIBUTOS IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoTributosIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="CST" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="cClassTrib" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:element minOccurs="0" name="gIBSCBS" type="TCRTCInfoTributosSitClas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionadas ao IBS e à CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCInfoTributosSitClas" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="CST" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Situação Tributária do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cClassTrib" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Classificação Tributária do IBS e da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="cCredPres" type="TSRTCCodCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código e Classificação do Crédito Presumido: IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribRegular" type="TCRTCInfoTributosTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações da Tributação Regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gDif" type="TCRTCInfoTributosDif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações relacionadas ao diferimento para IBS e CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCInfoTributosTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="CSTReg" type="TSRTCCodSitTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código de Situação Tributária do IBS e da CBS de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cClassTribReg" type="TSRTCCodClassTrib" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código da Classificação Tributária do IBS e da CBS de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCInfoTributosDif" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pDifUF" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para o IBS estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pDifMun" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para o IBS municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pDifCBS" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de diferimento para a CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCListaDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="dFeNacional" type="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documentos fiscais eletrônicos que se encontram no repositório nacional
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="docFiscalOutro" type="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documento fiscais, eletrônicos ou não, que não se encontram no repositório nacional
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="docOutro" type="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Grupo de informações de documento não fiscal.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element minOccurs="0" name="fornec" type="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações do fornecedor do documento referenciado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtEmiDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Data da emissão do documento dedutível
            Ano, mês e dia (AAAA-MM-DD)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dtCompDoc" type="TSData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Data da competência do documento dedutível
            Ano, mês e dia (AAAA-MM-DD)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="tpReeRepRes" type="TSRTCTpReeRepRes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Tipo de valor incluído neste documento, recebido por motivo de estarem relacionadas a operações de terceiros, 
            objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xTpReeRepRes" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do reembolso ou ressarcimento quando a opção é 
            "99 – Outros reembolsos ou ressarcimentos recebidos por valores pagos relativos a operações por conta e ordem de terceiro"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vlrReeRepRes" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor monetário (total ou parcial, conforme documento informado) utilizado para não inclusão na base de cálculo 
            do ISS e do IBS e da CBS da NFS-e que está sendo emitida (R$)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCListaDocOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="nDoc" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Número do documento não fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xDoc" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do documento não fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCListaDocDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="tipoChaveDFe" type="TSRTCTipoChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Documento fiscal a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xTipoChaveDFe" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição da DF-e a que se refere a chaveDfe que seja um dos documentos do Repositório Nacional
            Deve ser preenchido apenas quando "tipoChaveDFe = 9 (Outro)"
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="chaveDFe" type="TSRTCChaveDFe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Chave do Documento Fiscal eletrônico do repositório nacional referenciado para os casos de operações já tributadas
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCRTCListaDocFiscalOutro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cMunDocFiscal" type="TSNum7Dig" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Código do município emissor do documento fiscal que não se encontra no repositório nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nDocFiscal" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Número do documento fiscal que não se encontra no repositório nacional
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xDocFiscal" type="TSDesc255" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Descrição do documento fiscal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TCRTCListaDocFornec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CNPJ" type="TSCNPJ" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro Nacional de Pessoa Jurídica (CNPJ) do Fornecedor do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CPF" type="TSCPF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Número da inscrição no Cadastro de Pessoa Física (CPF) do Fornecedor do serviço
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="NIF" type="TSNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Este elemento só deverá ser preenchido para fornecedores não residentes no Brasil
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="cNaoNIF" type="TSCodNaoNIF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              Motivo para não informação do NIF:
              0 - Não informado na nota de origem;
              1 - Dispensado do NIF;
              2 - Não exigência do NIF;
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xNome" type="TSDesc150" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Nome / Razão Social do do Fornecedor do serviço
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TCEnderecoSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:element name="CEP" type="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do CEP</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="endExt" type="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
						<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Grupo de informações específicas de endereço no exterior</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xLgr" type="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo e nome do logradouro da localização do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nro" type="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número do imóvel</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xCpl" type="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento do endereço</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xBairro" type="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<!--TIPO COMPLEXO IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="cLocalidadeIncid" type="TSCodMunIBGE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Código IBGE da localidade de incidência do IBS/CBS (local da operação)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="xLocalidadeIncid" type="TSDesc600" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Nome da localidade de incidência do IBS/CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pRedutor" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Percentual de redução de aliquota em compra governamental
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="valores" type="TCRTCValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Grupo de valores brutos referentes ao IBS/CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="totCIBS" type="TCRTCTotalCIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					Grupo de Totalizadores
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DOS VALORES BRUTOS IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCValoresIBSCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="vBC" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da base de cálculo (BC) do IBS/CBS antes das reduções para cálculo do tributo bruto
            vBC = vServ - descIncond – vCalcReeRepRes – vISSQN – vPIS - vCOFINS (até 2026) ou
            vBC = vServ - descIncond – vCalcReeRepRes – vISSQN (até 2032)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="vCalcReeRepRes" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor monetário (R$) total relativo ao fornecimento próprio de bens materiais ou relacionados a operações de terceiros, 
            objeto de reembolso, repasse ou ressarcimento pelo recebedor, já tributados e aqui referenciados e que não integram 
            da base de cálculo (BC) do ISSQN, do IBS e da CBS.
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="uf" type="TCRTCValoresIBSCBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores do IBS Estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mun" type="TCRTCValoresIBSCBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores do IBS Municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fed" type="TCRTCValoresIBSCBSFed" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de Informações relativas aos valores da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO IBS ESTADUAL-->
	<xs:complexType name="TCRTCValoresIBSCBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da UF para IBS da localidade de incidência parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqUF" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de redução de alíquota estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetUF = pIBSUF x (1 - pRedAliqUF) x (1 - pRedutor)
            Se pRedAliqUF não for informado na DPS, então pAliqEfetUF é a própria pIBSUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO IBS MUNICIPAL-->
	<xs:complexType name="TCRTCValoresIBSCBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do Município para IBS da localidade de incidência parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqMun" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual de redução de alíquota municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetMun = pIBSMun x (1 - pRedAliqMun) x (1 - pRedutor)
            Se pRedAliqMun não for informado na DPS, então pAliqEfetMun é a própria pIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO CBS-->
	<xs:complexType name="TCRTCValoresIBSCBSFed" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da União para CBS parametrizada no sistema
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="pRedAliqCBS" type="TSDec3V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Percentual da redução de alíquota da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfetCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            pAliqEfetCBS = pCBS x (1 - pRedAliqCBS) x (1 - pRedutor)
            Se pRedAliqCBS não for informado na DPS, então pAliqEfetCBS é a própria pCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES IBSCBS-->
	<!-- Aceita o formato NT 004 e o NT 009 (task #167989); exclusividade validada em ValidaIBSCBS (DPS_E075) -->
	<xs:complexType name="TCRTCTotalCIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vTotNF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor Total da NF considerando os impostos por fora: IBS e CBS
            O IBS e a CBS são por fora, por isso seus valores devem ser adicionados ao valor total da NF
            vTotNF = vLiq (em 2026)
            vTotNF = vLiq + vCBS + vIBSTot (a partir de 2027)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gIBS" type="TCRTCTotalIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gCBS" type="TCRTCTotalCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes à CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribRegular" type="TCRTCTotalTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações de tributação regular
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gTribCompraGov" type="TCRTCTotalTribCompraGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de informações da composição do valor do IBS e da CBS em compras governamentais
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS-->
	<xs:complexType name="TCRTCTotalIBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vIBSTot" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor total do IBS.
            vIBSTot = vIBSUF + vIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element minOccurs="0" name="gIBSCredPres" type="TCRTCTotalIBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao crédito presumido para IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="gIBSUFTot" type="TCRTCTotalIBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS Estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="gIBSMunTot" type="TCRTCTotalIBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao IBS Municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CREDITO PRESUMIDO IBS-->
	<xs:complexType name="TCRTCTotalIBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCredPresIBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do crédito presumido para o IBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCredPresIBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Crédito Presumido para o IBS
            vCredPresIBS = vBC x pCredPresIBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS ESTADUAL-->
	<xs:complexType name="TCRTCTotalIBSUF" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vDifUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento do IBS estadual
            vDifUF = vIBSUF x pDifUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor do IBS estadual
            vIBSUF = vBC x (pIBSUF ou pAliqEfetUF)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBS MUNICIPAL-->
	<xs:complexType name="TCRTCTotalIBSMun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="vDifMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento do IBS municipal
            vDifMun = vIBSMun x pDifMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor do IBS municipal
            vIBSMun = vBC x (pIBSMun ou pAliqEfetMun)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CBS-->
	<xs:complexType name="TCRTCTotalCBS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element minOccurs="0" name="gCBSCredPres" type="TCRTCTotalCBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Grupo de valores referentes ao crédito presumido para CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vDifCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total do Diferimento CBS
            vDifCBS = vCBS x pDifCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Total valor da CBS da União
            vCBS = vBC x (pCBS ou pAliqEfetCBS)
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES CREDITO PRESUMIDO CBS-->
	<xs:complexType name="TCRTCTotalCBSCredPres" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pCredPresCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do crédito presumido para a CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCredPresCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Crédito Presumido da CBS
            vCredPresCBS = vBC x pCredPresCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES TRIBUTAÇÃO REGULAR-->
	<xs:complexType name="TCRTCTotalTribRegular" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pAliqEfeRegIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular do IBS estadual
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular do IBS estadual
            vTribRegIBSUF = vBC x pAliqEfeRegIBSUF
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfeRegIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular do IBS municipal
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular do IBS municipal
            vTribRegIBSMun = vBC x pAliqEfeRegIBSMun
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pAliqEfeRegCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota efetiva de tributação regular da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vTribRegCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor da tributação regular da CBS
            vTribRegCBS = vBC x pAliqEfeRegCBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--TIPO COMPLEXO DE TOTALIZADORES DOS VALORES IBSCBS EM COMPRAS GOVERNAMENTAIS-->
	<xs:complexType name="TCRTCTotalTribCompraGov" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="pIBSUF" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do IBS de competência do Estado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSUF" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo do IBS da UF calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pIBSMun" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota do IBS de competência do Município
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vIBSMun" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo do IBS do Município calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pCBS" type="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Alíquota da CBS
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vCBS" type="TSDec15V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            Valor do Tributo da CBS calculado
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:simpleType name="TSDesc600" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="600" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TSDec2V2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Valor decimal com 1 ou 2 dígitos mais 2 casas decimais</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,1}(\.[0-9]{2})?" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSBairro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Bairro</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSComplementoEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Complemento</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="156" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSNumeroEndereco" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Número</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSLogradouro" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Logradouro</xs:documentation>
		</xs:annotation>
		<xs:restriction base="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="255" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:complexType name="TCEnderExtSimples" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="cEndPost" type="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código alfanumérico do Endereçamento Postal no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xCidade" type="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Nome da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xEstProvReg" type="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
				<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
					<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região da cidade no exterior do prestador do serviço.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:simpleType name="TSCodigoEndPostal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Código de enderaçamento postal</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="11" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSCidade" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Cidade</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSEstadoProvRegiao" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Estado, província ou região</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="60" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSCEP" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">CEP</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[0-9]{8}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSIdeEvento" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Identificação da Atividade de Evento (código identificador de evento determinado pela Administração Tributária Municipal)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:minLength value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:maxLength value="30" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TSString" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Tipo string genérico</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:whiteSpace value="preserve" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
			<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
		</xs:restriction>
	</xs:simpleType>

</xs:schema>
  </wsdl:types>
  <wsdl:message name="enviarLoteNotasRequest">
    <wsdl:part element="sch1:enviarLoteNotasRequest" name="enviarLoteNotasRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterInformacaoRetencaoRequest">
    <wsdl:part element="sch1:obterInformacaoRetencaoRequest" name="obterInformacaoRetencaoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="pingResponse">
    <wsdl:part element="sch1:pingResponse" name="pingResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterReciboLoteResponse">
    <wsdl:part element="sch1:obterReciboLoteResponse" name="obterReciboLoteResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultarNotaFiscalResponse">
    <wsdl:part element="sch1:consultarNotaFiscalResponse" name="consultarNotaFiscalResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterCriticaLoteResponse">
    <wsdl:part element="sch1:obterCriticaLoteResponse" name="obterCriticaLoteResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPDFLoteResponse">
    <wsdl:part element="sch1:obterNotasEmPDFLoteResponse" name="obterNotasEmPDFLoteResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalXmlResponse">
    <wsdl:part element="sch1:obterNotaFiscalXmlResponse" name="obterNotaFiscalXmlResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RecepcionarLoteRpsSincronoRequest">
    <wsdl:part element="tns:RecepcionarLoteRpsSincronoRequest" name="RecepcionarLoteRpsSincronoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalLoteResponse">
    <wsdl:part element="sch1:obterNotaFiscalLoteResponse" name="obterNotaFiscalLoteResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalTomadaRequest">
    <wsdl:part element="sch1:obterNotaFiscalTomadaRequest" name="obterNotaFiscalTomadaRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPDFLoteRequest">
    <wsdl:part element="sch1:obterNotasEmPDFLoteRequest" name="obterNotasEmPDFLoteRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="CancelarNfseRequest">
    <wsdl:part element="tns:CancelarNfseRequest" name="CancelarNfseRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPNGRequest">
    <wsdl:part element="sch1:obterNotasEmPNGRequest" name="obterNotasEmPNGRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="inutilizacaoRequest">
    <wsdl:part element="sch1:inutilizacaoRequest" name="inutilizacaoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterCriticaLotePDFRequest">
    <wsdl:part element="sch1:obterCriticaLotePDFRequest" name="obterCriticaLotePDFRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="cancelarNotaFiscalResponse">
    <wsdl:part element="sch1:cancelarNotaFiscalResponse" name="cancelarNotaFiscalResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNumeracaoRequest">
    <wsdl:part element="sch1:obterNumeracaoRequest" name="obterNumeracaoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterAliquotaSimplesNacionalRequest">
    <wsdl:part element="sch1:obterAliquotaSimplesNacionalRequest" name="obterAliquotaSimplesNacionalRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ConsultarNfseServicoPrestadoRequest">
    <wsdl:part element="tns:ConsultarNfseServicoPrestadoRequest" name="ConsultarNfseServicoPrestadoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ConsultarLoteRpsRequest">
    <wsdl:part element="tns:ConsultarLoteRpsRequest" name="ConsultarLoteRpsRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalResponse">
    <wsdl:part element="sch1:obterNotaFiscalResponse" name="obterNotaFiscalResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPDFRequest">
    <wsdl:part element="sch1:obterNotasEmPDFRequest" name="obterNotasEmPDFRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterCriticaLoteRequest">
    <wsdl:part element="sch1:obterCriticaLoteRequest" name="obterCriticaLoteRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="enviarLoteNotasResponse">
    <wsdl:part element="sch1:enviarLoteNotasResponse" name="enviarLoteNotasResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPDFResponse">
    <wsdl:part element="sch1:obterNotasEmPDFResponse" name="obterNotasEmPDFResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterLoteNotaFiscalResponse">
    <wsdl:part element="sch1:obterLoteNotaFiscalResponse" name="obterLoteNotaFiscalResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RecepcionarLoteRpsRequest">
    <wsdl:part element="tns:RecepcionarLoteRpsRequest" name="RecepcionarLoteRpsRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="enviarLoteCupomRequest">
    <wsdl:part element="sch1:enviarLoteCupomRequest" name="enviarLoteCupomRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultarNotaFiscalRequest">
    <wsdl:part element="sch1:consultarNotaFiscalRequest" name="consultarNotaFiscalRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterLoteNotaFiscalRequest">
    <wsdl:part element="sch1:obterLoteNotaFiscalRequest" name="obterLoteNotaFiscalRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="cancelarLoteResponse">
    <wsdl:part element="sch1:cancelarLoteResponse" name="cancelarLoteResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ConsultarNfseFaixaRequest">
    <wsdl:part element="tns:ConsultarNfseFaixaRequest" name="ConsultarNfseFaixaRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalRequest">
    <wsdl:part element="sch1:obterNotaFiscalRequest" name="obterNotaFiscalRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubstituirNfseRequest">
    <wsdl:part element="tns:SubstituirNfseRequest" name="SubstituirNfseRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalXmlRequest">
    <wsdl:part element="sch1:obterNotaFiscalXmlRequest" name="obterNotaFiscalXmlRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalLoteRequest">
    <wsdl:part element="sch1:obterNotaFiscalLoteRequest" name="obterNotaFiscalLoteRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterCriticaLotePDFResponse">
    <wsdl:part element="sch1:obterCriticaLotePDFResponse" name="obterCriticaLotePDFResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="corrigirNFSeRequest">
    <wsdl:part element="sch1:corrigirNFSeRequest" name="corrigirNFSeRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GerarNfseRequest">
    <wsdl:part element="tns:GerarNfseRequest" name="GerarNfseRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotaFiscalTomadaResponse">
    <wsdl:part element="sch1:obterNotaFiscalTomadaResponse" name="obterNotaFiscalTomadaResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="cancelarNotaFiscalRequest">
    <wsdl:part element="sch1:cancelarNotaFiscalRequest" name="cancelarNotaFiscalRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ConsultarNfseServicoTomadoRequest">
    <wsdl:part element="tns:ConsultarNfseServicoTomadoRequest" name="ConsultarNfseServicoTomadoRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="pingRequest">
    <wsdl:part element="sch1:pingRequest" name="pingRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ConsultarNfsePorRpsRequest">
    <wsdl:part element="tns:ConsultarNfsePorRpsRequest" name="ConsultarNfsePorRpsRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNotasEmPNGResponse">
    <wsdl:part element="sch1:obterNotasEmPNGResponse" name="obterNotasEmPNGResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="cancelarLoteRequest">
    <wsdl:part element="sch1:cancelarLoteRequest" name="cancelarLoteRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterNumeracaoResponse">
    <wsdl:part element="sch1:obterNumeracaoResponse" name="obterNumeracaoResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterInformacaoRetencaoResponse">
    <wsdl:part element="sch1:obterInformacaoRetencaoResponse" name="obterInformacaoRetencaoResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="obterReciboLoteRequest">
    <wsdl:part element="sch1:obterReciboLoteRequest" name="obterReciboLoteRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RecepcionarLoteRpsResponse">
    <wsdl:part element="tns:RecepcionarLoteRpsResponse" name="RecepcionarLoteRpsResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="ServicosPort">
    <wsdl:operation name="enviarLoteNotas">
      <wsdl:input message="tns:enviarLoteNotasRequest" name="enviarLoteNotasRequest">
    </wsdl:input>
      <wsdl:output message="tns:enviarLoteNotasResponse" name="enviarLoteNotasResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterInformacaoRetencao">
      <wsdl:input message="tns:obterInformacaoRetencaoRequest" name="obterInformacaoRetencaoRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterInformacaoRetencaoResponse" name="obterInformacaoRetencaoResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ping">
      <wsdl:input message="tns:pingRequest" name="pingRequest">
    </wsdl:input>
      <wsdl:output message="tns:pingResponse" name="pingResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterReciboLote">
      <wsdl:input message="tns:obterReciboLoteRequest" name="obterReciboLoteRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterReciboLoteResponse" name="obterReciboLoteResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="consultarNotaFiscal">
      <wsdl:input message="tns:consultarNotaFiscalRequest" name="consultarNotaFiscalRequest">
    </wsdl:input>
      <wsdl:output message="tns:consultarNotaFiscalResponse" name="consultarNotaFiscalResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterCriticaLote">
      <wsdl:input message="tns:obterCriticaLoteRequest" name="obterCriticaLoteRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterCriticaLoteResponse" name="obterCriticaLoteResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPDFLote">
      <wsdl:input message="tns:obterNotasEmPDFLoteRequest" name="obterNotasEmPDFLoteRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotasEmPDFLoteResponse" name="obterNotasEmPDFLoteResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalXml">
      <wsdl:input message="tns:obterNotaFiscalXmlRequest" name="obterNotaFiscalXmlRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotaFiscalXmlResponse" name="obterNotaFiscalXmlResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RecepcionarLoteRpsSincrono">
      <wsdl:input message="tns:RecepcionarLoteRpsSincronoRequest" name="RecepcionarLoteRpsSincronoRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalLote">
      <wsdl:input message="tns:obterNotaFiscalLoteRequest" name="obterNotaFiscalLoteRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotaFiscalLoteResponse" name="obterNotaFiscalLoteResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalTomada">
      <wsdl:input message="tns:obterNotaFiscalTomadaRequest" name="obterNotaFiscalTomadaRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotaFiscalTomadaResponse" name="obterNotaFiscalTomadaResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="CancelarNfse">
      <wsdl:input message="tns:CancelarNfseRequest" name="CancelarNfseRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPNG">
      <wsdl:input message="tns:obterNotasEmPNGRequest" name="obterNotasEmPNGRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotasEmPNGResponse" name="obterNotasEmPNGResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="inutilizacao">
      <wsdl:input message="tns:inutilizacaoRequest" name="inutilizacaoRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterCriticaLotePDF">
      <wsdl:input message="tns:obterCriticaLotePDFRequest" name="obterCriticaLotePDFRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterCriticaLotePDFResponse" name="obterCriticaLotePDFResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="cancelarNotaFiscal">
      <wsdl:input message="tns:cancelarNotaFiscalRequest" name="cancelarNotaFiscalRequest">
    </wsdl:input>
      <wsdl:output message="tns:cancelarNotaFiscalResponse" name="cancelarNotaFiscalResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNumeracao">
      <wsdl:input message="tns:obterNumeracaoRequest" name="obterNumeracaoRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNumeracaoResponse" name="obterNumeracaoResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterAliquotaSimplesNacional">
      <wsdl:input message="tns:obterAliquotaSimplesNacionalRequest" name="obterAliquotaSimplesNacionalRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseServicoPrestado">
      <wsdl:input message="tns:ConsultarNfseServicoPrestadoRequest" name="ConsultarNfseServicoPrestadoRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarLoteRps">
      <wsdl:input message="tns:ConsultarLoteRpsRequest" name="ConsultarLoteRpsRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscal">
      <wsdl:input message="tns:obterNotaFiscalRequest" name="obterNotaFiscalRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotaFiscalResponse" name="obterNotaFiscalResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPDF">
      <wsdl:input message="tns:obterNotasEmPDFRequest" name="obterNotasEmPDFRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterNotasEmPDFResponse" name="obterNotasEmPDFResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterLoteNotaFiscal">
      <wsdl:input message="tns:obterLoteNotaFiscalRequest" name="obterLoteNotaFiscalRequest">
    </wsdl:input>
      <wsdl:output message="tns:obterLoteNotaFiscalResponse" name="obterLoteNotaFiscalResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RecepcionarLoteRps">
      <wsdl:input message="tns:RecepcionarLoteRpsRequest" name="RecepcionarLoteRpsRequest">
    </wsdl:input>
      <wsdl:output message="tns:RecepcionarLoteRpsResponse" name="RecepcionarLoteRpsResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="enviarLoteCupom">
      <wsdl:input message="tns:enviarLoteCupomRequest" name="enviarLoteCupomRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="cancelarLote">
      <wsdl:input message="tns:cancelarLoteRequest" name="cancelarLoteRequest">
    </wsdl:input>
      <wsdl:output message="tns:cancelarLoteResponse" name="cancelarLoteResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseFaixa">
      <wsdl:input message="tns:ConsultarNfseFaixaRequest" name="ConsultarNfseFaixaRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="SubstituirNfse">
      <wsdl:input message="tns:SubstituirNfseRequest" name="SubstituirNfseRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="corrigirNFSe">
      <wsdl:input message="tns:corrigirNFSeRequest" name="corrigirNFSeRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="GerarNfse">
      <wsdl:input message="tns:GerarNfseRequest" name="GerarNfseRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseServicoTomado">
      <wsdl:input message="tns:ConsultarNfseServicoTomadoRequest" name="ConsultarNfseServicoTomadoRequest">
    </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfsePorRps">
      <wsdl:input message="tns:ConsultarNfsePorRpsRequest" name="ConsultarNfsePorRpsRequest">
    </wsdl:input>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ServicosPortSoap11" type="tns:ServicosPort">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="enviarLoteNotas">
      <soap:operation soapAction=""/>
      <wsdl:input name="enviarLoteNotasRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="enviarLoteNotasResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterInformacaoRetencao">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterInformacaoRetencaoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterInformacaoRetencaoResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ping">
      <soap:operation soapAction=""/>
      <wsdl:input name="pingRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="pingResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterReciboLote">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterReciboLoteRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterReciboLoteResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="consultarNotaFiscal">
      <soap:operation soapAction=""/>
      <wsdl:input name="consultarNotaFiscalRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="consultarNotaFiscalResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterCriticaLote">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterCriticaLoteRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterCriticaLoteResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPDFLote">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotasEmPDFLoteRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotasEmPDFLoteResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalXml">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotaFiscalXmlRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotaFiscalXmlResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RecepcionarLoteRpsSincrono">
      <soap:operation soapAction=""/>
      <wsdl:input name="RecepcionarLoteRpsSincronoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalLote">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotaFiscalLoteRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotaFiscalLoteResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscalTomada">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotaFiscalTomadaRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotaFiscalTomadaResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="CancelarNfse">
      <soap:operation soapAction=""/>
      <wsdl:input name="CancelarNfseRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPNG">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotasEmPNGRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotasEmPNGResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="inutilizacao">
      <soap:operation soapAction=""/>
      <wsdl:input name="inutilizacaoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterCriticaLotePDF">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterCriticaLotePDFRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterCriticaLotePDFResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="cancelarNotaFiscal">
      <soap:operation soapAction=""/>
      <wsdl:input name="cancelarNotaFiscalRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="cancelarNotaFiscalResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNumeracao">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNumeracaoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNumeracaoResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterAliquotaSimplesNacional">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterAliquotaSimplesNacionalRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseServicoPrestado">
      <soap:operation soapAction=""/>
      <wsdl:input name="ConsultarNfseServicoPrestadoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarLoteRps">
      <soap:operation soapAction=""/>
      <wsdl:input name="ConsultarLoteRpsRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="obterNotaFiscal">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotaFiscalRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotaFiscalResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterNotasEmPDF">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterNotasEmPDFRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterNotasEmPDFResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="obterLoteNotaFiscal">
      <soap:operation soapAction=""/>
      <wsdl:input name="obterLoteNotaFiscalRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="obterLoteNotaFiscalResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="RecepcionarLoteRps">
      <soap:operation soapAction=""/>
      <wsdl:input name="RecepcionarLoteRpsRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="RecepcionarLoteRpsResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="enviarLoteCupom">
      <soap:operation soapAction=""/>
      <wsdl:input name="enviarLoteCupomRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="cancelarLote">
      <soap:operation soapAction=""/>
      <wsdl:input name="cancelarLoteRequest">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="cancelarLoteResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseFaixa">
      <soap:operation soapAction=""/>
      <wsdl:input name="ConsultarNfseFaixaRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="SubstituirNfse">
      <soap:operation soapAction=""/>
      <wsdl:input name="SubstituirNfseRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="corrigirNFSe">
      <soap:operation soapAction=""/>
      <wsdl:input name="corrigirNFSeRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="GerarNfse">
      <soap:operation soapAction=""/>
      <wsdl:input name="GerarNfseRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfseServicoTomado">
      <soap:operation soapAction=""/>
      <wsdl:input name="ConsultarNfseServicoTomadoRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="ConsultarNfsePorRps">
      <soap:operation soapAction=""/>
      <wsdl:input name="ConsultarNfsePorRpsRequest">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ServicosPortService">
    <wsdl:port binding="tns:ServicosPortSoap11" name="ServicosPortSoap11">
      <soap:address location="https://carlosbarbosa-homol.infisc.com.br/services/nfse/ws/Servicos"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>