<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2025 rel. 2 (x64) (https://www.altova.com) by PROCERGS (Procergs - Centro de Tecnologia da Informação e Comunicação do Estado do Rio Grande do Sul S.A.) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfgas" targetNamespace="http://www.portalfiscal.inf.br/nfgas" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
	<xs:include schemaLocation="tiposGeralNFGas_v1.00.xsd"/>
	<xs:include schemaLocation="DFeTiposBasicos_v1.00.xsd"/>
	<xs:complexType name="TNFGas">
		<xs:annotation>
			<xs:documentation>Tipo Nota Fiscal de Gas</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="infNFGas">
				<xs:annotation>
					<xs:documentation>Informações da NFGas</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="ide">
							<xs:annotation>
								<xs:documentation>Identificação da NFGas</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="cUF" type="TCodUfIBGE">
										<xs:annotation>
											<xs:documentation>Código da UF do emitente da NFGas</xs:documentation>
											<xs:documentation>Código da UF do emitente do Documento Fiscal. Utilizar a
Tabela do IBGE de código de unidades da federação.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="tpAmb" type="TAmb">
										<xs:annotation>
											<xs:documentation>Tipo do Ambiente</xs:documentation>
											<xs:documentation>1 - Produção; 
2 - Homologação</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="mod" type="TModNF">
										<xs:annotation>
											<xs:documentation>Modelo da NFGas</xs:documentation>
											<xs:documentation>Utilizar o código 76 para identificação da NFGas</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="serie" type="TSerie">
										<xs:annotation>
											<xs:documentation>Série do documento fiscal</xs:documentation>
											<xs:documentation>Informar a série do documento fiscal (informar zero para série única).</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="nNF" type="TNF">
										<xs:annotation>
											<xs:documentation>Número do documento fiscal</xs:documentation>
											<xs:documentation>Número que identifica o documento fiscal 1 a 999999999.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="cNF">
										<xs:annotation>
											<xs:documentation>Código numérico que compõe a Chave de Acesso. </xs:documentation>
											<xs:documentation>Código aleatório gerado pelo emitente, com o objetivo de evitar acessos indevidos ao documento.</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:pattern value="[0-9]{7}"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="cDV">
										<xs:annotation>
											<xs:documentation>Digito verificador da chave de acesso</xs:documentation>
											<xs:documentation>Informar o dígito  de controle da chave de acesso documento fiscal, que deve ser calculado com a aplicação do algoritmo módulo 11 (base 2,9) da chave de acesso. </xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:pattern value="[0-9]{1}"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="dhEmi" type="TDateTimeUTC">
										<xs:annotation>
											<xs:documentation>Data e hora de emissão do documento fiscal</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DDTHH:MM:DD TZD</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="tpEmis" type="TtpEmis">
										<xs:annotation>
											<xs:documentation>Forma de emissão do Documento Fiscal </xs:documentation>
											<xs:documentation>1 - Normal
; 2 - Contingência Off Line</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="nSiteAutoriz">
										<xs:annotation>
											<xs:documentation>Identificação do número do Site do Autorizador de recepção da NFGas</xs:documentation>
											<xs:documentation>Se o autorizador da NFGas possuir apenas um site deverá ser informado com Zero (0), em caso de Autorizador trabalhar com múltiplos sites indicar o número do site para qual foi endereçada a NFGas (1 a 9).
Observação: O ambiente autorizador que trabalhar com mais de um Site deverá divulgar para cada endereço de site qual número correspondente de nSiteAutoriz o contribuinte pode usar</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:pattern value="[0-9]{1}"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="cMunFG" type="TCodMunIBGE">
										<xs:annotation>
											<xs:documentation>Código do município de ocorrência do fato gerador do IBS/CBS</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="finNFGas" type="TFinNF">
										<xs:annotation>
											<xs:documentation>Finalidade de emissão da NFGas</xs:documentation>
											<xs:documentation>0 - NFGas normal; 
3 - NFGas substituição; 
</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="tpFat" type="TFatNF">
										<xs:annotation>
											<xs:documentation>Tipo de Faturamento da NFGas</xs:documentation>
											<xs:documentation>1 - Faturamento Normal; 
2 - Faturamento Agregado;
3 - Faturamento Agregador</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="verProc">
										<xs:annotation>
											<xs:documentation>Versão do processo de emissão</xs:documentation>
											<xs:documentation>Informar a versão do aplicativo emissor de NFGas</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="1"/>
												<xs:maxLength value="20"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:sequence minOccurs="0">
										<xs:annotation>
											<xs:documentation>Informar apenas
para tpEmis diferente de 1</xs:documentation>
										</xs:annotation>
										<xs:element name="dhCont" type="TDateTimeUTC">
											<xs:annotation>
												<xs:documentation>Data e Hora da entrada em contingência</xs:documentation>
												<xs:documentation>Informar a data e hora no formato AAAA-MM-DDTHH:MM:SS</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="xJust">
											<xs:annotation>
												<xs:documentation>Justificativa da entrada em contingência</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="TString">
													<xs:minLength value="15"/>
													<xs:maxLength value="256"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
									<xs:element name="gCompraGov" type="TCompraGovReduzido" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Grupo de Compras Governamentais</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="tpPagAnt" type="TPagAnt" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Tipo Pagamento ou Pagamento Antecipado</xs:documentation>
											<xs:documentation>Informar:
1 - Pagamento Antecipado de Serviços Não Continuados
2 - Pagamento de serviços continuados (antes da prestação)
3 - Fornecimento com pagamento realizado anteriormente

Este campo é opcional e apenas deve ser informado em notas de pagamento que ocorre antes da prestação do serviço e na nota de fornecimento associada a esses pagamentos, Notas Normais que retratam a prestação de serviço continuado mensal da nota fatura (contendo ou não itens de serviço não continuado) em que o pagamento não foi antecipado NÃO DEVEM INFORMAR ESSE CAMPO.

A tabela cClass terá uma flag que sinaliza se o tipo de item é de prestação continuada ou não continuada</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="emit">
							<xs:annotation>
								<xs:documentation>Identificação do Emitente do documento fiscal</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="CNPJ" type="TCnpj">
										<xs:annotation>
											<xs:documentation>CNPJ do emitente</xs:documentation>
											<xs:documentation>Informar zeros não significativos</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IE" type="TIe">
										<xs:annotation>
											<xs:documentation>Inscrição Estadual do emitente</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="xNome">
										<xs:annotation>
											<xs:documentation>Razão social ou Nome do emitente</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="60"/>
												<xs:minLength value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="xFant" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Nome fantasia do emitente</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="60"/>
												<xs:minLength value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="enderEmit" type="TEndeEmi">
										<xs:annotation>
											<xs:documentation>Endereço do emitente</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="ISUFEmit" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Inscrição do emitente da Suframa</xs:documentation>
											<xs:documentation>Informar o número do Cadastro do emitente na Suframa. Campo obrigatório nas operações que se beneficiam de incentivos fiscais existentes nas áreas sob controle da SUFRAMA com alíquota zero da CBS referente aos arts. 451 e 466 da LC 214/25 </xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="8"/>
												<xs:maxLength value="9"/>
												<xs:whiteSpace value="preserve"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="dest">
							<xs:annotation>
								<xs:documentation>Identificação do destinatário </xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="xNome">
										<xs:annotation>
											<xs:documentation>Razão social ou Nome do destinatário</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="60"/>
												<xs:minLength value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:choice>
										<xs:element name="CNPJ" type="TCnpjOpc">
											<xs:annotation>
												<xs:documentation>Número do CNPJ</xs:documentation>
												<xs:documentation>Em caso de empresa não estabelecida no Brasil, será informado o CNPJ com zeros.
							Informar os zeros não significativos.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="CPF" type="TCpf">
											<xs:annotation>
												<xs:documentation>Número do CPF</xs:documentation>
												<xs:documentation>Informar os zeros não significativos.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="idOutros">
											<xs:annotation>
												<xs:documentation>Identificação do destinatário outros</xs:documentation>
												<xs:documentation>Identificação do destinatário não obrigado a inscrição do CPF tais como estrangeiro, indígena (informar código do RANI) e quilombola; ou destinatário que a distribuidora não possui a informação (nestes casos orienta-se informar "00000").</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:whiteSpace value="preserve"/>
													<xs:minLength value="2"/>
													<xs:maxLength value="20"/>
													<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{2,20})?"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:choice>
									<xs:element name="IE" type="TIeDest" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Inscrição Estadual do destinatário</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IM" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Inscrição Municipal</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="1"/>
												<xs:maxLength value="15"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:choice minOccurs="0">
										<xs:element name="cNIS">
											<xs:annotation>
												<xs:documentation>Número da Identificação Social - NIS</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:minLength value="1"/>
													<xs:maxLength value="15"/>
													<xs:whiteSpace value="preserve"/>
													<xs:pattern value="[0-9]{15}"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="NB">
											<xs:annotation>
												<xs:documentation>Número do Benefício</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:minLength value="1"/>
													<xs:maxLength value="10"/>
													<xs:whiteSpace value="preserve"/>
													<xs:pattern value="[0-9]{10}"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:choice>
									<xs:element name="xNomeAdicional" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Nome de destinatário adicional</xs:documentation>
											<xs:documentation>Exemplo: Nome do Conjuge, Companheira(o)</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="60"/>
												<xs:minLength value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="enderDest" type="TEndeEmi">
										<xs:annotation>
											<xs:documentation>Endereço do destinatário</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="instalacao" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Dados da Instalação

OPCIONAL para TpFat=3</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="idInstalacao">
										<xs:annotation>
											<xs:documentation>Código único de Identificação da Instalação</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="1"/>
												<xs:maxLength value="15"/>
												<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{1,15})?"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="idCodCliente" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Código de Identificação do Cliente para empresa emitente</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="2"/>
												<xs:maxLength value="20"/>
												<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{2,20})?"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="tpInstalacao" type="TLigacao">
										<xs:annotation>
											<xs:documentation>Tipo de Instalação</xs:documentation>
											<xs:documentation>1 - Cativo
2 - Livre
3 - Parcialmente Livre</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="nContrato" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Número do Contrato</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="1"/>
												<xs:maxLength value="20"/>
												<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{1,20})?"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="tpClasse" type="TClasse">
										<xs:annotation>
											<xs:documentation>Classe de Consumo da Instalação</xs:documentation>
											<xs:documentation>01 - Comercial
02 - Industrial
03 - Residencial
04 - Térmico
05 - Veicular Posto
06 - Veicular Frota
07 - GNC
08 - GNL
09 - Cogeração
10 - Refinaria
99 - Outros</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="xClasse" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Detalhamento da Classe quando informado Outros</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="200"/>
												<xs:minLength value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:sequence minOccurs="0">
										<xs:annotation>
											<xs:documentation>Sequencia XML</xs:documentation>
											<xs:documentation>Localização </xs:documentation>
										</xs:annotation>
										<xs:element name="latGPS" type="TLatitude">
											<xs:annotation>
												<xs:documentation>Latitude do ponto geográfico da localização da captura</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="longGPS" type="TLongitude">
											<xs:annotation>
												<xs:documentation>Longitude do ponto geográfico da localização da captura</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
									<xs:element name="codRoteiroLeitura" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Roteiro da Leitura para uso operacional</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="100"/>
												<xs:minLength value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="gSub" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Grupo de informações da substituição</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:choice>
										<xs:element name="chNFGas" type="TChDFe">
											<xs:annotation>
												<xs:documentation>Chave de acesso da NFGas referenciada</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="gNF">
											<xs:annotation>
												<xs:documentation>Informação da NF em papel referenciada</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="CNPJ" type="TCnpj">
														<xs:annotation>
															<xs:documentation>CNPJ do Emitente</xs:documentation>
															<xs:documentation>Informar o CNPJ do emitente do Documento Fiscal</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="serie">
														<xs:annotation>
															<xs:documentation>Serie do documento fiscal</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="TString">
																<xs:minLength value="1"/>
																<xs:maxLength value="3"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="nNF" type="TNF">
														<xs:annotation>
															<xs:documentation>Número do documento fiscal</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="CompetEmis" type="TCompet">
														<xs:annotation>
															<xs:documentation>Ano e mês da emissão da NF papel (AAAAMM)</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="CompetApur" type="TCompet">
														<xs:annotation>
															<xs:documentation>Ano e mês de apuração (AAAAMM)</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="hash115" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Hash do registro no arquivo do convênio 115</xs:documentation>
															<xs:documentation/>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:base64Binary">
																<xs:minLength value="32"/>
																<xs:maxLength value="32"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:choice>
									<xs:element name="motSub" type="TMotSub">
										<xs:annotation>
											<xs:documentation>Motivo da substituição</xs:documentation>
											<xs:documentation>01 – Erro de Leitura
02 – Erro de Preço ou Erro de Tarifa; 
03 – Decisão Judicial
04 – Erro Cadastral; 
05 - Erro de Tributação
06 - Decisão da Reguladora; </xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="gVolContrat" minOccurs="0" maxOccurs="20">
							<xs:annotation>
								<xs:documentation>Grupo de informações das volumes contratados</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="tpVolContrat" type="TGrContrat">
										<xs:annotation>
											<xs:documentation>Tipo de volume contratado</xs:documentation>
											<xs:documentation>1 - Demanda mínima; 
2 - Montante de Uso do Sistema de Distribuição; 
3 - Encargo de Capacidade;
4 - Volume Contratado</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="qUnidContrat" type="TDec_1302_1306">
										<xs:annotation>
											<xs:documentation>Quantidade Contratada em m3</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
								<xs:attribute name="nContrat" use="required">
									<xs:annotation>
										<xs:documentation>Número de referência para informar nos produtos a relação com a quantidade contratada</xs:documentation>
									</xs:annotation>
									<xs:simpleType>
										<xs:restriction base="xs:string">
											<xs:whiteSpace value="preserve"/>
											<xs:minLength value="2"/>
											<xs:maxLength value="2"/>
											<xs:pattern value="(0[1-9]|1[0-9]|20)"/>
										</xs:restriction>
									</xs:simpleType>
								</xs:attribute>
							</xs:complexType>
						</xs:element>
						<xs:element name="gMed" minOccurs="0" maxOccurs="99">
							<xs:annotation>
								<xs:documentation>Grupo de informações dos Equipamentos de Medição</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="idEqp">
										<xs:annotation>
											<xs:documentation>Identificação do equipamento de Medição</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="2"/>
												<xs:maxLength value="20"/>
												<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{2,20})?"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="dMedAnt" type="TData">
										<xs:annotation>
											<xs:documentation>Data da leitura anterior</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DD

Em caso da 1a leitura do hidrometro, informar a data de instalação do hidrômetro</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vMedAnt" type="TDec_1302_1304">
										<xs:annotation>
											<xs:documentation>Valor da medição (leitura) anterior</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="dMedAtu" type="TData">
										<xs:annotation>
											<xs:documentation>Data da leitura atual</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DD</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vMedAtu" type="TDec_1302_1304">
										<xs:annotation>
											<xs:documentation>Valor da medição (leitura) atual</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="tpEqp">
										<xs:annotation>
											<xs:documentation>1 - Medidor
2 - Conversor</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="1"/>
												<xs:whiteSpace value="preserve"/>
												<xs:enumeration value="1"/>
												<xs:enumeration value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="tpMedidor" minOccurs="0">
										<xs:annotation>
											<xs:documentation>1 - Turbina 
2 - Rotativo 
3 - Diafragma
4 - Ultrasonico

Informado apenas para tpEqp = 1</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="1"/>
												<xs:whiteSpace value="preserve"/>
												<xs:enumeration value="1"/>
												<xs:enumeration value="2"/>
												<xs:enumeration value="3"/>
												<xs:enumeration value="4"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
								<xs:attribute name="nMed" use="required">
									<xs:annotation>
										<xs:documentation>Número de referência para informar nos produtos a relação com a medição</xs:documentation>
									</xs:annotation>
									<xs:simpleType>
										<xs:restriction base="xs:string">
											<xs:whiteSpace value="preserve"/>
											<xs:minLength value="2"/>
											<xs:maxLength value="2"/>
											<xs:pattern value="0[1-9]|[1-9][0-9]"/>
										</xs:restriction>
									</xs:simpleType>
								</xs:attribute>
							</xs:complexType>
						</xs:element>
						<xs:element name="det" maxOccurs="990">
							<xs:annotation>
								<xs:documentation>Detalhamento de Produtos e Serviços</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:choice>
										<xs:element name="gNormal">
											<xs:annotation>
												<xs:documentation>Informar se faturamento normal (1) ou agregado (2)</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="gTarif" minOccurs="0" maxOccurs="6">
														<xs:annotation>
															<xs:documentation>Grupo de Tarifas por Período</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="dIniTarif" type="TData">
																	<xs:annotation>
																		<xs:documentation>Data de início da aplicação da tarifa </xs:documentation>
																		<xs:documentation>Data de início da aplicação da tarifa no período considerado para o faturamento (
Formato AAAA-MM-DD)</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="dFimTarif" type="TData" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Data de fim da aplicação da tarifa </xs:documentation>
																		<xs:documentation>Data de fim da aplicação da tarifa no período considerado para o faturamento
 (Formato AAAA-MM-DD)</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="nAto">
																	<xs:annotation>
																		<xs:documentation>Número do Ato</xs:documentation>
																		<xs:documentation/>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="TString">
																			<xs:minLength value="4"/>
																			<xs:maxLength value="4"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="anoAto">
																	<xs:annotation>
																		<xs:documentation>Ano do Ato (AAAA)</xs:documentation>
																		<xs:documentation/>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:string">
																			<xs:minLength value="4"/>
																			<xs:maxLength value="4"/>
																			<xs:whiteSpace value="preserve"/>
																			<xs:pattern value="[0-9]{4}"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="tpFaixaCons" type="TFaixa">
																	<xs:annotation>
																		<xs:documentation>Faixa Prevista de Consumo</xs:documentation>
																		<xs:documentation>1 - Fixa
2 - Média</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="vTarifAplic">
																	<xs:annotation>
																		<xs:documentation>Valor da tarifa aplicada</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="TDec_0908"/>
																	</xs:simpleType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="prod">
														<xs:annotation>
															<xs:documentation>Dados do Produto ou Serviço</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="indOrigemQtd" type="TOrigemQtd">
																	<xs:annotation>
																		<xs:documentation>Indicador da origem da quantidade faturada</xs:documentation>
																		<xs:documentation>1 - Media; 
2 - Medido; 
3 - Contratada; 
4 - Residual estimado
5 - Residual medido
6 - Sem quantidade 
7 - Por Faixa;


</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="gMedicao" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Grupo para referenciar qual medição e medida estão relacionadas ao item

Informar para origem qtd = 1 ou 5</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="nMed">
																				<xs:annotation>
																					<xs:documentation>Referência para a medição ao qual se refere o item</xs:documentation>
																					<xs:documentation/>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:string">
																						<xs:minLength value="2"/>
																						<xs:maxLength value="2"/>
																						<xs:whiteSpace value="preserve"/>
																						<xs:pattern value="0[1-9]|[1-9][0-9]"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																			<xs:element name="nContrat" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation>Referência para o grupo de demanda contratada ao qual se refere o item</xs:documentation>
																					<xs:documentation/>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:string">
																						<xs:minLength value="2"/>
																						<xs:maxLength value="2"/>
																						<xs:whiteSpace value="preserve"/>
																						<xs:pattern value="(0[1-9]|1[0-9]|20)"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																			<xs:choice>
																				<xs:element name="gMedida" type="TMedida">
																					<xs:annotation>
																						<xs:documentation>Grupo de medida</xs:documentation>
																					</xs:annotation>
																				</xs:element>
																				<xs:sequence>
																					<xs:element name="tpMotNaoLeitura" type="TMotNaoLeitura">
																						<xs:annotation>
																							<xs:documentation>Tipo Motivo da não leitura</xs:documentation>
																							<xs:documentation>1 - Consumidor; 
2 - Distribuidora; 
3 - Independente do Consumidor e distribuidora;</xs:documentation>
																						</xs:annotation>
																					</xs:element>
																					<xs:element name="xMotNaoLeitura" minOccurs="0">
																						<xs:annotation>
																							<xs:documentation>Detalhamento do motivo da não leitura</xs:documentation>
																						</xs:annotation>
																						<xs:simpleType>
																							<xs:restriction base="TString">
																								<xs:maxLength value="200"/>
																								<xs:minLength value="1"/>
																							</xs:restriction>
																						</xs:simpleType>
																					</xs:element>
																				</xs:sequence>
																			</xs:choice>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
																<xs:element name="cProd">
																	<xs:annotation>
																		<xs:documentation>Código do produto ou serviço. </xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="TString">
																			<xs:maxLength value="60"/>
																			<xs:minLength value="1"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="xProd">
																	<xs:annotation>
																		<xs:documentation>Descrição do produto ou serviço</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="TString">
																			<xs:maxLength value="120"/>
																			<xs:minLength value="1"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="cClass">
																	<xs:annotation>
																		<xs:documentation>Código de classificação</xs:documentation>
																		<xs:documentation>Tabela de Classificação de Item da Gas (validar por RV)</xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:string">
																			<xs:minLength value="7"/>
																			<xs:maxLength value="7"/>
																			<xs:whiteSpace value="preserve"/>
																			<xs:pattern value="[0-9]{7}"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="CFOP" type="TCfop" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>CFOP</xs:documentation>
																		<xs:documentation>Utilizar Tabela de CFOP. </xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="uMed" type="TUMedItem">
																	<xs:annotation>
																		<xs:documentation>Unidade Básica de Medida</xs:documentation>
																		<xs:documentation>1 - m3; 
2 - Unidade</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="qFaturada" type="TDec_1100_1104">
																	<xs:annotation>
																		<xs:documentation>Quantidade Faturada</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="vItem" type="TDec_1302_1310">
																	<xs:annotation>
																		<xs:documentation>Valor unitário do item</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="fatorPCS" type="TDec_1100_1104" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Fator de poder calorifico
Deve maior que zero</xs:documentation>
																		<xs:documentation>Se informado multipla ao valor do vItem
</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="fatorPTZ" type="TDec_1100_1104" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Fator de correção </xs:documentation>
																		<xs:documentation>Se informado multipla ao valor do vItem
Deve maior que zero</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="fatorP" type="TDec_1100_1104" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Fator de correção de pressão</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="fatorT" type="TDec_1100_1104" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Fator de correção de temperatura</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="vProd" type="TDec_1302_1310">
																	<xs:annotation>
																		<xs:documentation>Valor total do item</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="indDevolucao" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Indicador de devolução do valor do item</xs:documentation>
																		<xs:documentation>1 – Devolução do valor do item </xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:string">
																			<xs:minLength value="1"/>
																			<xs:maxLength value="1"/>
																			<xs:whiteSpace value="preserve"/>
																			<xs:enumeration value="1"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="gPagAntecipado" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Grupo de antecipação de pagamento

Permite informar apenas quando tpPagAnt=3</xs:documentation>
																		<xs:documentation>Informado para abater as parcelas de antecipação de
pagamento</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="chDFePagAnt" type="TChDFe">
																				<xs:annotation>
																					<xs:documentation>Chave de acesso da nota de antecipação de pagamento (com tpPagAnt=1 ou 2)</xs:documentation>
																					<xs:documentation>Referência a DFe emitido anteriormente, referente a pagamento antecipado</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="nItemPagAnt" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation>Número do item do DFe de antecipação para referência direta a um item</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:string">
																						<xs:minLength value="1"/>
																						<xs:maxLength value="3"/>
																						<xs:whiteSpace value="preserve"/>
																						<xs:pattern value="[1-9]{1}[0-9]{0,1}|[1-8]{1}[0-9]{2}|[9]{1}[0-8]{1}[0-9]{1}|[9]{1}[9]{1}[0]{1}"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="imposto">
														<xs:annotation>
															<xs:documentation>Tributos incidentes no Produto ou Serviço</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:choice>
																	<xs:sequence>
																		<xs:element name="orig">
																			<xs:annotation>
																				<xs:documentation>Origem da mercadoria</xs:documentation>
																				<xs:documentation>0 - Nacional, exceto as indicadas nos códigos 3, 4, 5 e 8

1 - Estrangeira - Importação direta, exceto a indicada no código 6

2 - Estrangeira - Adquirida no mercado interno, exceto a indicada no código 7

3 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 40% e inferior ou igual a 70%

4 - Nacional, cuja produção tenha sido feita em conformidade com os processos produtivos básicos de que tratam as legislações citadas nos Ajustes

5 - Nacional, mercadoria ou bem com Conteúdo de Importação inferior ou igual a 40%

6 - Estrangeira - Importação direta, sem similar nacional, constante em lista da CAMEX e gás natural

7 - Estrangeira - Adquirida no mercado interno, sem similar nacional, constante lista CAMEX e gás natural

8 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 70%</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:enumeration value="0"/>
																					<xs:enumeration value="1"/>
																					<xs:enumeration value="2"/>
																					<xs:enumeration value="3"/>
																					<xs:enumeration value="4"/>
																					<xs:enumeration value="5"/>
																					<xs:enumeration value="6"/>
																					<xs:enumeration value="7"/>
																					<xs:enumeration value="8"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:element>
																		<xs:choice>
																			<xs:element name="ICMS00">
																				<xs:annotation>
																					<xs:documentation>Prestação sujeito à tributação normal do ICMS</xs:documentation>
																					<xs:documentation>Tributada integralmente</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>classificação Tributária do Serviço</xs:documentation>
																								<xs:documentation>00 - tributação normal ICMS</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="00"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="vBC" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMS" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMS" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="pFCP" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS10">
																				<xs:annotation>
																					<xs:documentation>Tributada e com cobrança do ICMS por substituição tributária</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>classificação Tributária do Serviço</xs:documentation>
																								<xs:documentation>10=Tributada e com cobrança do ICMS por substituição tributária</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="10"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="modBC">
																							<xs:annotation>
																								<xs:documentation>Modalidade de determinação da BC do ICMS:
0 - Margem Valor Agregado (%);
1 - Preço médio ponderado ao consumidor (PMPF)
2 - Valor da Operação</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="0"/>
																									<xs:enumeration value="1"/>
																									<xs:enumeration value="2"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="vBC" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMS" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMS" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="pFCP" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																						<xs:element name="modBCST">
																							<xs:annotation>
																								<xs:documentation>Modalidade de determinação da BC do ICMS ST:
0 - Margem Valor Agregado (%);
1 - Preço médio ponderado ao consumidor (PMPF)
2 - Valor da Operação</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="0"/>
																									<xs:enumeration value="1"/>
																									<xs:enumeration value="2"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="pMVAST" type="TDec_0302a04Opc" minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Percentual da Margem de Valor Adicionado ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vBCST" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMSST" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMSST" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS ST retido</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="pFCPST" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCPST" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS20">
																				<xs:annotation>
																					<xs:documentation>Prestação sujeito à tributação com redução de BC do ICMS</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Classificação Tributária do serviço</xs:documentation>
																								<xs:documentation>20 - tributação com BC reduzida do ICMS</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="20"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="pRedBC" type="TDec_0302Opc">
																							<xs:annotation>
																								<xs:documentation>Percentual de redução da BC</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vBC" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMS" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMS" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vICMSDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="cBenef">
																								<xs:annotation>
																									<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item</xs:documentation>
																									<xs:documentation>Código de Benefício Fiscal utilizado pela UF, aplicado ao
 item.
</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:maxLength value="10"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="pFCP" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS40">
																				<xs:annotation>
																					<xs:documentation>Tributação Isenta, Não tributada</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Classificação Tributária do serviço</xs:documentation>
																								<xs:documentation>40=Isenta; 41=Não tributada;
</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="40"/>
																									<xs:enumeration value="41"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vICMSDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="cBenef">
																								<xs:annotation>
																									<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item</xs:documentation>
																									<xs:documentation>Código de Benefício Fiscal utilizado pela UF, aplicado ao
item.
</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:maxLength value="10"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS51">
																				<xs:annotation>
																					<xs:documentation>Tributação com Diferimento </xs:documentation>
																					<xs:documentation>A exigência do preenchimento das informações do ICMS diferido fica a critério de cada UF</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Classificação Tributária do serviço</xs:documentation>
																								<xs:documentation>Tributação pelo ICMS 51 - Diferimento</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="51"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="vBC" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMS" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMS" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS

</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pDif" type="TDec_0302">
																							<xs:annotation>
																								<xs:documentation>Alíquota de diferimento</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMSOp" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS da operação</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMSDif" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS diferido</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="cBenef" minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item</xs:documentation>
																								<xs:documentation>Código de Benefício Fiscal utilizado pela UF, aplicado ao
item.
</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:maxLength value="10"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS60">
																				<xs:annotation>
																					<xs:documentation>Tributação pelo ICMS
60 - ICMS cobrado anteriormente por substituição tributária</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Tributação pelo ICMS 
60 - ICMS cobrado anteriormente por substituição tributária</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="60"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:choice>
																							<xs:sequence>
																								<xs:annotation>
																									<xs:documentation>Choice referente ao conjunto de tags do ICMS Retido #246 até #253.
Deverá ser informado esse conjunto do ICMS Retido ou o conjunto do ICMS efetivo
</xs:documentation>
																								</xs:annotation>
																								<xs:element name="vBCSTRet" type="TDec_1302">
																									<xs:annotation>
																										<xs:documentation>Valor da BC do ICMS ST retido anteriormente</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="pICMSSTRet" type="TDec_0302a04Opc">
																									<xs:annotation>
																										<xs:documentation>Aliquota suportada pelo consumidor final.</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="vICMSSubstituto" type="TDec_1302" minOccurs="0">
																									<xs:annotation>
																										<xs:documentation>Valor do ICMS Próprio do Substituto cobrado em operação anterior</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="vICMSSTRet" type="TDec_1302">
																									<xs:annotation>
																										<xs:documentation>Valor do ICMS ST retido anteriormente</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:sequence minOccurs="0">
																									<xs:element name="vBCFCPSTRet" type="TDec_1302">
																										<xs:annotation>
																											<xs:documentation>Valor da Base de cálculo do FCP retido anteriormente por ST.</xs:documentation>
																										</xs:annotation>
																									</xs:element>
																									<xs:element name="pFCPSTRet" type="TDec_0302a04Opc">
																										<xs:annotation>
																											<xs:documentation>Percentual de FCP retido anteriormente por substituição tributária.</xs:documentation>
																										</xs:annotation>
																									</xs:element>
																									<xs:element name="vFCPSTRet" type="TDec_1302">
																										<xs:annotation>
																											<xs:documentation>Valor do FCP retido por substituição tributária.</xs:documentation>
																										</xs:annotation>
																									</xs:element>
																								</xs:sequence>
																							</xs:sequence>
																							<xs:sequence>
																								<xs:annotation>
																									<xs:documentation>Choice referente ao conjunto de tags do ICMS Efetivo
Deverá ser informado esse conjunto do ICMS Efetivo ou o conjunto do ICMS retido
</xs:documentation>
																								</xs:annotation>
																								<xs:element name="pRedBCEfet" type="TDec_0302a04Opc">
																									<xs:annotation>
																										<xs:documentation>Percentual de redução da base de cálculo efetiva.</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="vBCEfet" type="TDec_1302">
																									<xs:annotation>
																										<xs:documentation>Valor da base de cálculo efetiva.</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="pICMSEfet" type="TDec_0302a04Opc">
																									<xs:annotation>
																										<xs:documentation>Alíquota do ICMS efetiva.</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																								<xs:element name="vICMSEfet" type="TDec_1302">
																									<xs:annotation>
																										<xs:documentation>Valor do ICMS efetivo.</xs:documentation>
																									</xs:annotation>
																								</xs:element>
																							</xs:sequence>
																						</xs:choice>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vICMSDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="cBenef">
																								<xs:annotation>
																									<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item</xs:documentation>
																									<xs:documentation>Código de Benefício Fiscal utilizado pela UF, aplicado ao
 item.
</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:maxLength value="10"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS70">
																				<xs:annotation>
																					<xs:documentation>Tributação pelo ICMS 
70 - Com redução de base de cálculo e cobrança do ICMS por substituição tributária</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Tributção pelo ICMS
70 - Com redução de base de cálculo e cobrança do ICMS por substituição tributária</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="70"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="modBC">
																							<xs:annotation>
																								<xs:documentation>Modalidade de determinação da BC do ICMS:
0 - Margem Valor Agregado (%);
1 - Preço médio ponderado ao consumidor (PMPF)
2 - Valor da Operação</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="0"/>
																									<xs:enumeration value="1"/>
																									<xs:enumeration value="2"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="pRedBC" type="TDec_0302a04">
																							<xs:annotation>
																								<xs:documentation>Percentual de redução da BC</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vBC" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMS" type="TDec_0302a04">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMS" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:element name="vBCFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor da Base de cálculo do FCP.</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="pFCP" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																						<xs:element name="modBCST">
																							<xs:annotation>
																								<xs:documentation>Modalidade de determinação da BC do ICMS ST:
0 - Margem Valor Agregado (%);
1 - Preço médio ponderado ao consumidor (PMPF)
2 - Valor da Operação</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="0"/>
																									<xs:enumeration value="1"/>
																									<xs:enumeration value="2"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:element name="pMVAST" type="TDec_0302a04Opc" minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Percentual da Margem de Valor Adicionado ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pRedBCST" type="TDec_0302a04Opc" minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Percentual de redução da BC ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vBCST" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor da BC do ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="pICMSST" type="TDec_0302a04">
																							<xs:annotation>
																								<xs:documentation>Alíquota do ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:element name="vICMSST" type="TDec_1302">
																							<xs:annotation>
																								<xs:documentation>Valor do ICMS ST</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:element name="vBCFCPST" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor da Base de cálculo do FCP retido por substituição tributária.</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="pFCPST" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de FCP retido por substituição tributária.</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCPST" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do FCP retido por substituição tributária.</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Grupo desoneração</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vICMSDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="motDesICMS">
																								<xs:annotation>
																									<xs:documentation>Motivo da desoneração do ICMS:3-Uso na agropecuária;9-Outros;12-Fomento agropecuário</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:enumeration value="3"/>
																										<xs:enumeration value="9"/>
																										<xs:enumeration value="12"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																							<xs:element name="indDeduzDeson" minOccurs="0">
																								<xs:annotation>
																									<xs:documentation>Indica se o valor do ICMS desonerado (vICMSDeson) deduz do valor do item (vProd):
0=Valor do ICMS desonerado (vICMSDeson) não deduz do valor do item (vProd) / total da NF-e;
1=Valor do ICMS desonerado (vICMSDeson) deduz do valor do item (vProd) / total da NF-e.</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:enumeration value="0"/>
																										<xs:enumeration value="1"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																						<xs:sequence minOccurs="0">
																							<xs:element name="vICMSSTDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS-ST desonerado.</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="motDesICMSST">
																								<xs:annotation>
																									<xs:documentation>Motivo da desoneração do ICMS-ST: 3-Uso na agropecuária; 9-Outros; 12-Fomento agropecuário.</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:enumeration value="3"/>
																										<xs:enumeration value="9"/>
																										<xs:enumeration value="12"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ICMS90">
																				<xs:annotation>
																					<xs:documentation>ICMS Outros</xs:documentation>
																					<xs:documentation>Será usado no caso da subvenção</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:sequence>
																						<xs:element name="CST">
																							<xs:annotation>
																								<xs:documentation>Classificação Tributária do Serviço</xs:documentation>
																								<xs:documentation> 90 - ICMS outros</xs:documentation>
																							</xs:annotation>
																							<xs:simpleType>
																								<xs:restriction base="xs:string">
																									<xs:whiteSpace value="preserve"/>
																									<xs:enumeration value="90"/>
																								</xs:restriction>
																							</xs:simpleType>
																						</xs:element>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequência XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vBC" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor da BC do ICMS</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="pICMS" type="TDec_0302">
																								<xs:annotation>
																									<xs:documentation>Alíquota do ICMS</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vICMS" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="vICMSDeson" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="cBenef">
																								<xs:annotation>
																									<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item</xs:documentation>
																									<xs:documentation>Código de Benefício Fiscal utilizado pela UF, aplicado ao
 item.
</xs:documentation>
																								</xs:annotation>
																								<xs:simpleType>
																									<xs:restriction base="xs:string">
																										<xs:whiteSpace value="preserve"/>
																										<xs:maxLength value="10"/>
																									</xs:restriction>
																								</xs:simpleType>
																							</xs:element>
																						</xs:sequence>
																						<xs:sequence minOccurs="0">
																							<xs:annotation>
																								<xs:documentation>Sequencia XML</xs:documentation>
																							</xs:annotation>
																							<xs:element name="pFCP" type="TDec_0302a04Opc">
																								<xs:annotation>
																									<xs:documentation>Percentual de ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																							<xs:element name="vFCP" type="TDec_1302">
																								<xs:annotation>
																									<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
																								</xs:annotation>
																							</xs:element>
																						</xs:sequence>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																		</xs:choice>
																	</xs:sequence>
																	<xs:element name="indSemCST">
																		<xs:annotation>
																			<xs:documentation>Sem Situação Tributária para o ICMS</xs:documentation>
																			<xs:documentation>Informar para itens que não tenham nenhuma relação com o ICMS.
Quando informado o item NÃO PODE ter CFOP informado

Se informado esse grupo o schema não permite informar nenhum dos grupos de ICMSXX</xs:documentation>
																		</xs:annotation>
																		<xs:simpleType>
																			<xs:restriction base="xs:string">
																				<xs:whiteSpace value="preserve"/>
																				<xs:enumeration value="1"/>
																			</xs:restriction>
																		</xs:simpleType>
																	</xs:element>
																</xs:choice>
																<xs:element name="IBSCBS" type="TTribNFGas">
																	<xs:annotation>
																		<xs:documentation>Grupo de informações do IBS e CBS</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="PIS" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Dados do PIS</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="CST">
																				<xs:annotation>
																					<xs:documentation>classificação Tributária do PIS</xs:documentation>
																					<xs:documentation>01 – Tributável com alíquota básica
02 – Tributável com alíquota diferenciada
06 – Tributável com alíquota erro
07 – Operação isenta de 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</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:string">
																						<xs:whiteSpace value="preserve"/>
																						<xs:enumeration value="01"/>
																						<xs:enumeration value="02"/>
																						<xs:enumeration value="06"/>
																						<xs:enumeration value="07"/>
																						<xs:enumeration value="08"/>
																						<xs:enumeration value="09"/>
																						<xs:enumeration value="49"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																			<xs:element name="vBC" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor da BC do PIS</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="pPIS" type="TDec_0302a04">
																				<xs:annotation>
																					<xs:documentation>Alíquota do PIS (em percentual)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vPIS" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor do PIS</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
																<xs:element name="COFINS" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Dados do COFINS</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="CST">
																				<xs:annotation>
																					<xs:documentation>classificação Tributária do COFINS</xs:documentation>
																					<xs:documentation>01 – Tributável com alíquota básica
02 – Tributável com alíquota diferenciada
06 – Tributável com alíquota erro
07 – Operação isenta de 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
</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="xs:string">
																						<xs:whiteSpace value="preserve"/>
																						<xs:enumeration value="01"/>
																						<xs:enumeration value="02"/>
																						<xs:enumeration value="06"/>
																						<xs:enumeration value="07"/>
																						<xs:enumeration value="08"/>
																						<xs:enumeration value="09"/>
																						<xs:enumeration value="49"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																			<xs:element name="vBC" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor da BC do COFINS</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="pCOFINS" type="TDec_0302a04">
																				<xs:annotation>
																					<xs:documentation>Alíquota do COFINS (em percentual)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vCOFINS" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor do COFINS</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
																<xs:element name="retTrib" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Grupo de informações de retenção de tributos federais</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="vRetPIS" type="TDec_1302_1308">
																				<xs:annotation>
																					<xs:documentation>Valor do PIS retido</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vRetCofins" type="TDec_1302_1308">
																				<xs:annotation>
																					<xs:documentation>Valor do COFNS retido</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vRetCSLL" type="TDec_1302_1308">
																				<xs:annotation>
																					<xs:documentation>Valor da CSLL retida</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vIRRF" type="TDec_1302_1308">
																				<xs:annotation>
																					<xs:documentation>Valor do IRRF retido</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
																<xs:element name="TxReg" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Taxa Regulatória</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="vBC" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor BC </xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="pTaxa" type="TDec_0302a04">
																				<xs:annotation>
																					<xs:documentation>Alíquota </xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="vTaxa" type="TDec_1302">
																				<xs:annotation>
																					<xs:documentation>Valor </xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="gProcRef" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Grupo Processo referenciado</xs:documentation>
															<xs:documentation>Este grupo somente deverá ser preenchido quando houver processo judicial ou administrativo que altere valores.</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="vItem" type="TDec_1302_1310">
																	<xs:annotation>
																		<xs:documentation>Valor unitário do item</xs:documentation>
																		<xs:documentation>Informar o valor sem a influência da decisão judicial/administrativa.</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="qFaturada" type="TDec_1100_1104">
																	<xs:annotation>
																		<xs:documentation>Quantidade Faturada</xs:documentation>
																		<xs:documentation>Informar a quantidade de comercialização do produto .</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="vProd" type="TDec_1302_1310">
																	<xs:annotation>
																		<xs:documentation>Valor total do item</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="indDevolucao" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Indicador de devolução do valor do item</xs:documentation>
																		<xs:documentation>1 – Devolução do valor do item </xs:documentation>
																	</xs:annotation>
																	<xs:simpleType>
																		<xs:restriction base="xs:string">
																			<xs:minLength value="1"/>
																			<xs:maxLength value="1"/>
																			<xs:whiteSpace value="preserve"/>
																			<xs:enumeration value="1"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
																<xs:element name="gProc" maxOccurs="10">
																	<xs:annotation>
																		<xs:documentation>Grupo identificador do Processo</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="tpProc" type="TProcesso">
																				<xs:annotation>
																					<xs:documentation>Tipo de Processo</xs:documentation>
																					<xs:documentation>0 - Processo Adm Estadual;
1 - Justiça Federal; 
2 - Justiça Estadual; 
3 - Processo Adm Municipal;
4 - Processo Adm Federal;
5 - Procon</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																			<xs:element name="nProcesso">
																				<xs:annotation>
																					<xs:documentation>Número do Processo</xs:documentation>
																				</xs:annotation>
																				<xs:simpleType>
																					<xs:restriction base="TString">
																						<xs:minLength value="1"/>
																						<xs:maxLength value="60"/>
																					</xs:restriction>
																				</xs:simpleType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="infAdProd" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Informações adicionais do produto (norma referenciada, informações complementares, etc)</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="TString">
																<xs:minLength value="1"/>
																<xs:maxLength value="500"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="gAgregadora">
											<xs:annotation>
												<xs:documentation>Informar para faturamento agregador (3)</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="cClass">
														<xs:annotation>
															<xs:documentation>Código de classificação</xs:documentation>
															<xs:documentation>Tabela de Classificação de Item da NFGas (validar por RV)</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:minLength value="7"/>
																<xs:maxLength value="7"/>
																<xs:whiteSpace value="preserve"/>
																<xs:pattern value="[0-9]{7}"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="vTotDFe" type="TDec_1302">
														<xs:annotation>
															<xs:documentation>Valor total do documento fiscal da nota agregada</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:choice>
								</xs:sequence>
								<xs:attribute name="nItem" use="required">
									<xs:annotation>
										<xs:documentation>Número do item da NFGas</xs:documentation>
									</xs:annotation>
									<xs:simpleType>
										<xs:restriction base="xs:string">
											<xs:whiteSpace value="preserve"/>
											<xs:pattern value="[1-9]{1}[0-9]{0,1}|[1-8]{1}[0-9]{2}|[9]{1}[0-8]{1}[0-9]{1}|[9]{1}[9]{1}[0]{1}"/>
										</xs:restriction>
									</xs:simpleType>
								</xs:attribute>
								<xs:attribute name="chNFGasAnt" type="TChDFe">
									<xs:annotation>
										<xs:documentation>Chave de Acesso da NFGas anterior 

Usar para NFGas quando indicar um item de devolução de nota anterior

DEVE SER USADA NA NOTA AGREGADORA PARA INDICAR AS NOTAS QUE FORAM AGREGADAS</xs:documentation>
										<xs:documentation>Informar chave de acesso de referencia anterior
TAG OPCIONAL, DEVE SER INFORMADA APENAS NOS CASOS PREVISTOS DE NOTA ANTERIOR REFERENCIADA</xs:documentation>
									</xs:annotation>
								</xs:attribute>
								<xs:attribute name="nItemAnt" use="optional">
									<xs:annotation>
										<xs:documentation>Número do item da NFGas anterior</xs:documentation>
										<xs:documentation>Informar nro do item da chave de acesso de referencia anterior

TAG OPCIONAL, DEVE SER INFORMADA APENAS NOS CASOS PREVISTOS DE NOTA ANTERIOR REFERENCIADA</xs:documentation>
									</xs:annotation>
									<xs:simpleType>
										<xs:restriction base="xs:string">
											<xs:whiteSpace value="preserve"/>
											<xs:pattern value="[1-9]{1}[0-9]{0,3}"/>
										</xs:restriction>
									</xs:simpleType>
								</xs:attribute>
							</xs:complexType>
						</xs:element>
						<xs:element name="total">
							<xs:annotation>
								<xs:documentation>Dados dos totais da NFGas</xs:documentation>
								<xs:documentation>Para Tipo de Faturamento Agregador (tpFat=3) todos os totalizadores devem ser zero, exceto vNF e vTotDFe que devem ser a soma do vTotDFe das notas anteriores informadas no grupo gAgregadora</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="vProd" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor Total dos produtos e serviços</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="ICMSTot">
										<xs:annotation>
											<xs:documentation>Totais referentes ao ICMS</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="vBC" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>BC do ICMS</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vICMS" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor Total do ICMS</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vICMSDeson" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor Total do ICMS desonerado</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vFCP" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor Total do FCP (Fundo de Combate à Pobreza).</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vBCST" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>BC do ICMS ST</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vST" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor Total do ICMS ST</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vFCPST" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor Total do FCP (Fundo de Combate à Pobreza) retido por substituição tributária.</xs:documentation>
													</xs:annotation>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="vRetTribTot">
										<xs:annotation>
											<xs:documentation>Total da retenção de tributos federais</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="vRetPIS" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor do PIS retido</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vRetCofins" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor do COFNS retido</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vRetCSLL" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor da CSLL retida</xs:documentation>
													</xs:annotation>
												</xs:element>
												<xs:element name="vIRRF" type="TDec_1302">
													<xs:annotation>
														<xs:documentation>Valor do IRRF retido</xs:documentation>
													</xs:annotation>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="vCOFINS" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor do COFINS</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vPIS" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor do PIS</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vTxReg" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor Taxa Regulatoria</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vNF" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor Total da NFGas</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IBSCBSTot" type="TIBSCBSTot">
										<xs:annotation>
											<xs:documentation>Totais de IBS e CBS</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="vTotDFe" type="TDec_1302">
										<xs:annotation>
											<xs:documentation>Valor total do documento fiscal 
(vNF + total do IBS + total da CBS) 
</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="pgtoVinc" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Grupo de informações da vínculação com a transação de pagamento</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="pgto" type="TPagamentoRTC" maxOccurs="99">
										<xs:annotation>
											<xs:documentation>Dados de cada pagamento previsto</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
							<xs:unique name="pk_nPag">
								<xs:selector xpath="./*"/>
								<xs:field xpath="@nPag"/>
							</xs:unique>
							<xs:unique name="pk_idTransacao">
								<xs:selector xpath="./*"/>
								<xs:field xpath="@idTransacao"/>
							</xs:unique>
						</xs:element>
						<xs:element name="gFat" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Grupo de informações de controle da Fatura

Obrigatorio para tpFat 1 e 3 (normal e agregador)
Vedado para tpFat 2 (agregado)</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="CompetFat" type="TCompet">
										<xs:annotation>
											<xs:documentation>Ano e mês referência do faturamento (AAAAMM)</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="dVencFat" type="TData">
										<xs:annotation>
											<xs:documentation>Data de vencimento da fatura</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DD</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="dApresFat" type="TData" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Data de apresentação da fatura</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DD</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="dProxLeitura" type="TData">
										<xs:annotation>
											<xs:documentation>Data prevista próxima leitura</xs:documentation>
											<xs:documentation>Formato AAAA-MM-DD</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="nFat" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Número da Fatura</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="1"/>
												<xs:maxLength value="20"/>
												<xs:pattern value="[0-9]{1,20}"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="codBarras">
										<xs:annotation>
											<xs:documentation>Linha digitável do código de barras</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:whiteSpace value="preserve"/>
												<xs:minLength value="1"/>
												<xs:maxLength value="48"/>
												<xs:pattern value="[0-9]{1,48}"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:choice>
										<xs:element name="codDebAuto">
											<xs:annotation>
												<xs:documentation>Código de autorização débito em conta</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:whiteSpace value="preserve"/>
													<xs:minLength value="1"/>
													<xs:maxLength value="20"/>
													<xs:pattern value="[0-9]{1,20}"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:sequence>
											<xs:element name="codBanco">
												<xs:annotation>
													<xs:documentation>Número do banco para débito em conta</xs:documentation>
												</xs:annotation>
												<xs:simpleType>
													<xs:restriction base="TString">
														<xs:minLength value="3"/>
														<xs:maxLength value="5"/>
													</xs:restriction>
												</xs:simpleType>
											</xs:element>
											<xs:element name="codAgencia">
												<xs:annotation>
													<xs:documentation>Número da agência bancária para débito em conta</xs:documentation>
												</xs:annotation>
												<xs:simpleType>
													<xs:restriction base="TString">
														<xs:minLength value="1"/>
														<xs:maxLength value="10"/>
													</xs:restriction>
												</xs:simpleType>
											</xs:element>
										</xs:sequence>
									</xs:choice>
									<xs:element name="enderCorresp" type="TEndeEmi" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Endereço de entrega da fatura.</xs:documentation>
											<xs:documentation>Informar se diferente do endereço do destinatário</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="gPIX" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Grupo de informações do PIX</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="urlQRCodePIX">
													<xs:annotation>
														<xs:documentation>URL do QRCode do PIX que será apresentado na fatura</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="TString">
															<xs:maxLength value="2000"/>
															<xs:minLength value="2"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="infAdFat" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Informações adicionais de faturamento</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="5000"/>
												<xs:minLength value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="gAgencia" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Grupo de informações da Agência reguladora

Obrigatorio para tpFat 1 e 2 (normal e agregada)
Vedado para tpFat 3 (agregadora)</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="nomeAgenciaAtend" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Nome da Agencia responsável pelo atendimento</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="2"/>
												<xs:maxLength value="60"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="enderAgenciaAtend" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Endereço da Agencia responsável pelo atendimento</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="2"/>
												<xs:maxLength value="200"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="sitioAgenciaAtend" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Sítio eletrônico da Agencia</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="2"/>
												<xs:maxLength value="200"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="gHistCons" maxOccurs="5">
										<xs:annotation>
											<xs:documentation>Histórico de Consumo</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="xHistorico">
													<xs:annotation>
														<xs:documentation>Nome do histórico para exibição/apresentação</xs:documentation>
														<xs:documentation>Exemplo: Consumo Meses Anteriores</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="TString">
															<xs:maxLength value="60"/>
															<xs:minLength value="2"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:element>
												<xs:element name="gCons" maxOccurs="13">
													<xs:annotation>
														<xs:documentation>Consumo</xs:documentation>
													</xs:annotation>
													<xs:complexType>
														<xs:sequence>
															<xs:element name="CompetFat" type="TCompet">
																<xs:annotation>
																	<xs:documentation>Ano e mês referência do faturamento (AAAAMM)</xs:documentation>
																</xs:annotation>
															</xs:element>
															<xs:element name="uMed" type="TUMed">
																<xs:annotation>
																	<xs:documentation>Unidade Básica de Medida</xs:documentation>
																	<xs:documentation>1 - m3 </xs:documentation>
																</xs:annotation>
															</xs:element>
															<xs:element name="qtdDias">
																<xs:annotation>
																	<xs:documentation>Quantidade de dias de medição</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:whiteSpace value="preserve"/>
																		<xs:pattern value="[0-9]{2}"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:element>
															<xs:element name="medDiaria" type="TDec_1302_1304" minOccurs="0">
																<xs:annotation>
																	<xs:documentation>Média Diária de consumo</xs:documentation>
																</xs:annotation>
															</xs:element>
															<xs:element name="consumo" type="TDec_1302_1304" minOccurs="0">
																<xs:annotation>
																	<xs:documentation>Consumo no mês</xs:documentation>
																</xs:annotation>
															</xs:element>
															<xs:element name="vFat" type="TDec_1302_1304">
																<xs:annotation>
																	<xs:documentation>Valor Faturado</xs:documentation>
																</xs:annotation>
															</xs:element>
														</xs:sequence>
													</xs:complexType>
												</xs:element>
												<xs:element name="medMensal" type="TDec_1302_1304">
													<xs:annotation>
														<xs:documentation>Média Mensal de consumo</xs:documentation>
													</xs:annotation>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="infAdReg" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Informações adicionais de interesse das agencias reguladoras</xs:documentation>
											<xs:documentation>Norma referenciada, informações complementares, etc</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="5000"/>
												<xs:minLength value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="autXML" minOccurs="0" maxOccurs="10">
							<xs:annotation>
								<xs:documentation>Autorizados para download do XML do DF-e</xs:documentation>
								<xs:documentation>Informar CNPJ ou CPF. Preencher os zeros não significativos.</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:choice>
										<xs:element name="CNPJ" type="TCnpj">
											<xs:annotation>
												<xs:documentation>CNPJ do autorizado</xs:documentation>
												<xs:documentation>Informar zeros não significativos</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="CPF" type="TCpf">
											<xs:annotation>
												<xs:documentation>CPF do autorizado</xs:documentation>
												<xs:documentation>Informar zeros não significativos</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:choice>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="infAdic" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Informações Adicionais</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:annotation>
										<xs:documentation>Sequencia XML</xs:documentation>
									</xs:annotation>
									<xs:element name="infAdFisco" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Informações adicionais de interesse do Fisco</xs:documentation>
											<xs:documentation>Norma referenciada, informações complementares, etc</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:maxLength value="2000"/>
												<xs:minLength value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="infCpl" minOccurs="0" maxOccurs="5">
										<xs:annotation>
											<xs:documentation>Informações complementares de interesse do Contribuinte</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="TString">
												<xs:minLength value="1"/>
												<xs:maxLength value="3000"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="gRespTec" type="TRespTec" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Informações do Responsável Técnico pela emissão do DF-e</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="versao" type="TVerNFGas" use="required">
						<xs:annotation>
							<xs:documentation>Versão do leiaute</xs:documentation>
						</xs:annotation>
					</xs:attribute>
					<xs:attribute name="Id" use="required">
						<xs:annotation>
							<xs:documentation>Identificador da tag a ser assinada</xs:documentation>
							<xs:documentation>Informar a chave de acesso da NFGas e precedida do literal "NFGas"</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:ID">
								<xs:pattern value="NFGas[0-9]{6}[A-Z0-9]{12}[0-9]{26}"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
				</xs:complexType>
				<xs:unique name="pk_nMed">
					<xs:selector xpath="./*"/>
					<xs:field xpath="@nMed"/>
				</xs:unique>
				<xs:unique name="pk_nItem">
					<xs:selector xpath="./*"/>
					<xs:field xpath="@nItem"/>
				</xs:unique>
				<xs:unique name="pk_nContr">
					<xs:selector xpath="./*"/>
					<xs:field xpath="@nContrat"/>
				</xs:unique>
			</xs:element>
			<xs:element name="infNFGasSupl">
				<xs:annotation>
					<xs:documentation>Informações suplementares da NFGas</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="qrCodNFGas">
							<xs:annotation>
								<xs:documentation>Texto com o QR-Code para consulta da NFGas</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:whiteSpace value="preserve"/>
									<xs:minLength value="50"/>
									<xs:maxLength value="1000"/>
									<xs:pattern value="((HTTPS?|https?)://.*\?chNFGas=[0-9]{6}[A-Z0-9]{12}[0-9]{26}&amp;tpAmb=[1-2](&amp;sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element ref="ds:Signature"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TEndeEmi">
		<xs:annotation>
			<xs:documentation>Tipo Dados do Endereço</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="xLgr">
				<xs:annotation>
					<xs:documentation>Logradouro</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="nro">
				<xs:annotation>
					<xs:documentation>Número</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="xCpl" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Complemento</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="xBairro">
				<xs:annotation>
					<xs:documentation>Bairro</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="cMun" type="TCodMunIBGE">
				<xs:annotation>
					<xs:documentation>Código do município (utilizar a tabela do IBGE)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xMun">
				<xs:annotation>
					<xs:documentation>Nome do município</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="CEP">
				<xs:annotation>
					<xs:documentation>CEP</xs:documentation>
					<xs:documentation>Informar zeros não significativos</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{8}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UF" type="TUf_sem_EX">
				<xs:annotation>
					<xs:documentation>Sigla da UF</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fone" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Telefone</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{7,12}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="email" type="TEmail" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Endereço de E-mail</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TEndereco">
		<xs:annotation>
			<xs:documentation>Tipo Dados do Endereço</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="xLgr">
				<xs:annotation>
					<xs:documentation>Logradouro</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="255"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="nro">
				<xs:annotation>
					<xs:documentation>Número</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="xCpl" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Complemento</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="xBairro">
				<xs:annotation>
					<xs:documentation>Bairro</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="cMun" type="TCodMunIBGE">
				<xs:annotation>
					<xs:documentation>Código do município (utilizar a tabela do IBGE), informar 9999999 para operações com o exterior.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xMun">
				<xs:annotation>
					<xs:documentation>Nome do município, informar EXTERIOR para operações com o exterior.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="CEP" minOccurs="0">
				<xs:annotation>
					<xs:documentation>CEP</xs:documentation>
					<xs:documentation>Informar os zeros não significativos</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{8}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UF" type="TUf">
				<xs:annotation>
					<xs:documentation>Sigla da UF, informar EX para operações com o exterior.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cPais" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Código do país</xs:documentation>
					<xs:documentation>Utilizar a tabela do BACEN</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{1,4}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="xPais" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Nome do país</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="fone" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Telefone</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{7,12}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="email" type="TEmail" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Endereço de E-mail</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TProtNFGas">
		<xs:annotation>
			<xs:documentation>Tipo Protocolo de status resultado do processamento da NFGas</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="infProt">
				<xs:annotation>
					<xs:documentation>Dados do protocolo de status</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="tpAmb" type="TAmb">
							<xs:annotation>
								<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="verAplic" type="TVerAplic">
							<xs:annotation>
								<xs:documentation>Versão do Aplicativo que processou a NFGas</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="chNFGas" type="TChDFe">
							<xs:annotation>
								<xs:documentation>Chave de acesso da NFGas</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="dhRecbto" type="TDateTimeUTC">
							<xs:annotation>
								<xs:documentation>Data e hora de processamento, no formato AAAA-MM-DDTHH:MM:SS TZD.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="nProt" type="TProt" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Número do Protocolo de Status da NFGas.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="digVal" type="ds:DigestValueType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Digest Value da NFGas processado. Utilizado para conferir a integridade da NFGas original.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="cStat">
							<xs:annotation>
								<xs:documentation>Código do status da NFGas</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="TStat"/>
							</xs:simpleType>
						</xs:element>
						<xs:element name="xMotivo" type="TMotivo">
							<xs:annotation>
								<xs:documentation>Descrição literal do status da NFGas</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="Id" type="xs:ID" use="optional"/>
				</xs:complexType>
			</xs:element>
			<xs:element name="infFisco" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Mensagem do Fisco</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="cMsg">
							<xs:annotation>
								<xs:documentation>Código do status da mensagem do fisco</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="TStat"/>
							</xs:simpleType>
						</xs:element>
						<xs:element name="xMsg" type="TMotivo">
							<xs:annotation>
								<xs:documentation>Mensagem do Fisco</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element ref="ds:Signature" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="versao" type="TVerNFGas" use="required"/>
	</xs:complexType>
	<xs:complexType name="TRetNFGas">
		<xs:annotation>
			<xs:documentation>Tipo Retorno do Pedido de Autorização de NFGas</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="tpAmb" type="TAmb">
				<xs:annotation>
					<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cUF" type="TCodUfIBGE">
				<xs:annotation>
					<xs:documentation>Identificação da UF</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="verAplic" type="TVerAplic">
				<xs:annotation>
					<xs:documentation>Versão do Aplicativo que processou a NFGas</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cStat" type="TStat">
				<xs:annotation>
					<xs:documentation>código do status do retorno da consulta.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xMotivo" type="TMotivo">
				<xs:annotation>
					<xs:documentation>Descrição literal do status do do retorno da consulta.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="protNFGas" type="TProtNFGas" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Reposta ao processamento da NFGas</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="versao" type="TVerNFGas" use="required"/>
	</xs:complexType>
	<xs:complexType name="TEmpresaSoft">
		<xs:annotation>
			<xs:documentation>Tipo Dados da Empresa de Software</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:choice>
				<xs:element name="CNPJ" type="TCnpj">
					<xs:annotation>
						<xs:documentation>CNPJ da pessoa jurídica desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico</xs:documentation>
						<xs:documentation>Informar o CNPJ da pessoa jurídica desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CPF" type="TCpf">
					<xs:annotation>
						<xs:documentation>CPF da pessoa física desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico</xs:documentation>
						<xs:documentation>No caso de pessoa física, informar o CPF do desenvolvedor do sistema utilizado na emissão do documento fiscal eletrônico.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="xContato">
				<xs:annotation>
					<xs:documentation>Nome da pessoa a ser contatada</xs:documentation>
					<xs:documentation>Informar o nome da pessoa a ser contatada na empresa desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico. No caso de pessoa física, informar o respectivo nome.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="email" type="TEmail">
				<xs:annotation>
					<xs:documentation>Email da pessoa jurídica/física a ser contatada</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fone">
				<xs:annotation>
					<xs:documentation>Telefone da pessoa jurídica/física a ser contatada</xs:documentation>
					<xs:documentation>Preencher com o Código DDD + número do telefone.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{7,12}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TMedida">
		<xs:annotation>
			<xs:documentation>Tipo de dados de medida </xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="uMed" type="TUMed">
				<xs:annotation>
					<xs:documentation>Unidade Básica de Medida</xs:documentation>
					<xs:documentation>1 –m3
</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vMed" type="TDec_1302_1304">
				<xs:annotation>
					<xs:documentation>Valor da medição </xs:documentation>
					<xs:documentation>(vMedAtu – vMedAnt) * vConst</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TRespTec">
		<xs:annotation>
			<xs:documentation>Tipo Dados da Responsável Técnico</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="CNPJ" type="TCnpj">
				<xs:annotation>
					<xs:documentation>CNPJ da pessoa jurídica responsável técnica pelo sistema utilizado na emissão do documento fiscal eletrônico</xs:documentation>
					<xs:documentation>Informar o CNPJ da pessoa jurídica desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="xContato">
				<xs:annotation>
					<xs:documentation>Nome da pessoa a ser contatada</xs:documentation>
					<xs:documentation>Informar o nome da pessoa a ser contatada na empresa desenvolvedora do sistema utilizado na emissão do documento fiscal eletrônico. No caso de pessoa física, informar o respectivo nome.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="TString">
						<xs:maxLength value="60"/>
						<xs:minLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="email" type="TEmail">
				<xs:annotation>
					<xs:documentation>Email da pessoa jurídica a ser contatada</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fone">
				<xs:annotation>
					<xs:documentation>Telefone da pessoa jurídica a ser contatada</xs:documentation>
					<xs:documentation>Preencher com o Código DDD + número do telefone.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="preserve"/>
						<xs:pattern value="[0-9]{7,12}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:sequence minOccurs="0">
				<xs:annotation>
					<xs:documentation>Sequencia XML</xs:documentation>
				</xs:annotation>
				<xs:element name="idCSRT">
					<xs:annotation>
						<xs:documentation>Identificador do código de segurança do responsável técnico</xs:documentation>
						<xs:documentation>Identificador do CSRT utilizado para geração do hash</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:pattern value="[0-9]{3}"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="hashCSRT">
					<xs:annotation>
						<xs:documentation>Hash do token do código de segurança do responsável técnico</xs:documentation>
						<xs:documentation>O hashCSRT é o resultado das funções SHA-1 e base64 do token CSRT fornecido pelo fisco + chave de acesso do DF-e. (Implementação em futura NT)

Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:base64Binary">
							<xs:length value="20"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
			</xs:sequence>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="TProcEmi">
		<xs:annotation>
			<xs:documentation>Tipo processo de emissão </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TVerNFGas">
		<xs:annotation>
			<xs:documentation> Tipo Versão da NFGas</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:pattern value="1\.00"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TTime">
		<xs:annotation>
			<xs:documentation> Tipo hora</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:pattern value="(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TEmail">
		<xs:annotation>
			<xs:documentation>Tipo Email</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="60"/>
			<xs:pattern value="[^@]+@[^\.]+\..+"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TFatNF">
		<xs:annotation>
			<xs:documentation>Tipo de Faturamento da NFGas</xs:documentation>
			<xs:documentation/>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TFinNF">
		<xs:annotation>
			<xs:documentation>Finalidade da NFGas</xs:documentation>
			<xs:documentation/>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TDoc">
		<xs:annotation>
			<xs:documentation>Tipo de Documento de Identificação</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TCfop">
		<xs:annotation>
			<xs:documentation>Tipo CFOP</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:pattern value="[123567][0-9]([0-9][1-9]|[1-9][0-9])"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TIndIEDest">
		<xs:annotation>
			<xs:documentation>Tipo indicador da IE do Destinatário</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="9"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TtpEmis">
		<xs:annotation>
			<xs:documentation>Tipo de emissão da NFGas</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="preserve"/>
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TLigacao">
		<xs:annotation>
			<xs:documentation>Tipo Ligação</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TPagAnt">
		<xs:annotation>
			<xs:documentation>Tipo Pagamento ou Pagamento Antecipado</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TFat">
		<xs:annotation>
			<xs:documentation>Tipo Faturamento</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TAcessante">
		<xs:annotation>
			<xs:documentation>Tipo acessante</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
			<xs:enumeration value="6"/>
			<xs:enumeration value="7"/>
			<xs:enumeration value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TClasse">
		<xs:annotation>
			<xs:documentation>Tipo de Classe</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
			<xs:enumeration value="06"/>
			<xs:enumeration value="07"/>
			<xs:enumeration value="08"/>
			<xs:enumeration value="09"/>
			<xs:enumeration value="10"/>
			<xs:enumeration value="99"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TCateg">
		<xs:annotation>
			<xs:documentation>Tipo Categoria</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="06"/>
			<xs:enumeration value="07"/>
			<xs:enumeration value="08"/>
			<xs:enumeration value="09"/>
			<xs:enumeration value="10"/>
			<xs:enumeration value="11"/>
			<xs:enumeration value="12"/>
			<xs:enumeration value="99"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TFase">
		<xs:annotation>
			<xs:documentation>Tipo de Fase</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TGrpTensao">
		<xs:annotation>
			<xs:documentation>Tipo Grupo Tensão</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
			<xs:enumeration value="06"/>
			<xs:enumeration value="07"/>
			<xs:enumeration value="08"/>
			<xs:enumeration value="09"/>
			<xs:enumeration value="10"/>
			<xs:enumeration value="11"/>
			<xs:enumeration value="12"/>
			<xs:enumeration value="13"/>
			<xs:enumeration value="14"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TGrMedGas">
		<xs:annotation>
			<xs:documentation>Tipo Grupo Medida</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
			<xs:enumeration value="06"/>
			<xs:enumeration value="07"/>
			<xs:enumeration value="08"/>
			<xs:enumeration value="99"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TModTar">
		<xs:annotation>
			<xs:documentation>Tipo Modalidade Tarifária</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
			<xs:enumeration value="06"/>
			<xs:enumeration value="07"/>
			<xs:enumeration value="08"/>
			<xs:enumeration value="09"/>
			<xs:enumeration value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TCompet">
		<xs:annotation>
			<xs:documentation>Tipo Competência</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="6"/>
			<xs:maxLength value="6"/>
			<xs:whiteSpace value="preserve"/>
			<xs:pattern value="[0-9]{1,6}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TMotSub">
		<xs:annotation>
			<xs:documentation>Tipo Motivo Substituição</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
			<xs:enumeration value="06"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TGrContrat">
		<xs:annotation>
			<xs:documentation>Tipo Grandeza Contratada</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TPosTarSimples">
		<xs:annotation>
			<xs:documentation>Tipo Posto Tarifário</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TPosTarifCompleto">
		<xs:annotation>
			<xs:documentation>Tipo Posto Tarifário Completo</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
			<xs:enumeration value="6"/>
			<xs:enumeration value="7"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TOrigemQtd">
		<xs:annotation>
			<xs:documentation>Tipo do indicador de origem da quantidade faturada</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
			<xs:enumeration value="6"/>
			<xs:enumeration value="7"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TGrMed">
		<xs:annotation>
			<xs:documentation>Tipo Grandeza Medida</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="2"/>
			<xs:maxLength value="2"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="00"/>
			<xs:enumeration value="01"/>
			<xs:enumeration value="02"/>
			<xs:enumeration value="03"/>
			<xs:enumeration value="04"/>
			<xs:enumeration value="05"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TUMedItem">
		<xs:annotation>
			<xs:documentation>Tipo da unidade básica de medida</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TUMed">
		<xs:annotation>
			<xs:documentation>Tipo da unidade básica de medida</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TBand">
		<xs:annotation>
			<xs:documentation>Tipo da bandeira tarifária</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TTarifa">
		<xs:annotation>
			<xs:documentation>Tipo de tarifa de aplicação</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TFaixa">
		<xs:annotation>
			<xs:documentation>Tipo de tarifa de aplicação</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TProcesso">
		<xs:annotation>
			<xs:documentation>Tipo de processo judicial</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TMotNaoLeitura">
		<xs:annotation>
			<xs:documentation>Tipo motivo não leitura</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TCompFat">
		<xs:annotation>
			<xs:documentation>Tipo componente da fatura</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:whiteSpace value="preserve"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
			<xs:enumeration value="6"/>
			<xs:enumeration value="7"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>