Avaliação do Tópico:
  • 0 Voto(s) - 0 em Média
  • 1
  • 2
  • 3
  • 4
  • 5
validação do xml
#1
Tongue 
Angry  => estou de toda forma fazer uma validação do arquivo xml confrontando o arquivo nfse-v2-04.xsd e sempre gera este
erro: O atributo minOccurs não pode aparecer no elemento element.

que é meio complicado de resolver.... que puder dar uma força ai segue o arquivo xml abaixo.....


<?xml version="1.0" encoding="utf-8" standalone="no"?><EnviarLoteRpsSincronoEnvio xmlns="http://www.abrasf.org.br/nfse.xsd"><LoteRps Id="66" versao="2.01"><NumeroLote>71</NumeroLote><CpfCnpj><Cnpj>04326049000190</Cnpj></CpfCnpj><InscricaoMunicipal>5.400.20</InscricaoMunicipal><QuantidadeRps>1</QuantidadeRps><ListaRps><Rps><InfDeclaracaoPrestacaoServico Id="rps36UNICA"><Rps><IdentificacaoRps><Numero>71</Numero><Serie>UNICA</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2013-10-07</DataEmissao><Status>1</Status></Rps><Competencia>2013-10-07</Competencia><Servico><Valores><ValorServicos>1250</ValorServicos><ValorDeducoes>0.00</ValorDeducoes><ValorPis>0.00</ValorPis><ValorCofins>0.00</ValorCofins><ValorInss>0.00</ValorInss><ValorIr>0.00</ValorIr><ValorCsll>0.00</ValorCsll><OutrasRetencoes>0.00</OutrasRetencoes><Aliquota>2.00</Aliquota><DescontoIncondicionado>0.00</DescontoIncondicionado><DescontoCondicionado>0.00</DescontoCondicionado></Valores><IssRetido>1</IssRetido><ResponsavelRetencao>1</ResponsavelRetencao><ItemListaServico>01.07</ItemListaServico><Discriminacao>-VALOR APROXIMADO DOS TRIBUTOS R$ 181,20 (5,65%) FONTE PROPRIA. SERVICOS DE M.O. PRESTADOS EM EQUIPAMENTO DE VOSSA PROPRIEDADE, CONFORME ABAIXO: -OS:003633 FROTA:30001900.. 3.207,25. DEPOSITO EM CONTA CORRENTE JUNTO AO BANCO HSBC SA AG. 1016, C/C. 01180-90, PEDIDO: 4500176832, VENCIMENTO: 15/09/2013 .</Discriminacao><CodigoMunicipio>3544806</CodigoMunicipio><CodigoPais>1058</CodigoPais><ExigibilidadeISS>1</ExigibilidadeISS><MunicipioIncidencia>3544806</MunicipioIncidencia></Servico><Prestador><CpfCnpj><Cnpj>04326049000190</Cnpj></CpfCnpj><InscricaoMunicipal>5.400.20</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cnpj>46734228000106</Cnpj></CpfCnpj><InscricaoMunicipal>12345</InscricaoMunicipal></IdentificacaoTomador><RazaoSocial>CARLOS CESAR CALDEIRA DA SILVA LTDA</RazaoSocial><Endereco><Endereco>RUA SORAIA</Endereco><Numero>645</Numero><Complemento>FUNDOS</Complemento><Bairro>JARDIM SORAIA</Bairro><CodigoMunicipio>3544806</CodigoMunicipio><Uf>SP</Uf><Cep>15075100</Cep></Endereco><Contato><Telefone>1781365713</Telefone><Email>CALDEIRASILVA@GMAIL.COM</Email></Contato></Tomador><OptanteSimplesNacional>2</OptanteSimplesNacional><IncentivoFiscal>2</IncentivoFiscal></InfDeclaracaoPrestacaoServico></Rps></ListaRps></LoteRps><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#rps36UNICA"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>gqgsgnOrdKLE2IxuXlq5JaW/Mbo=</DigestValue></Reference></SignedInfo><SignatureValue>et95vQXXTQ5C+OliSVwZ9jLjjKuerF0s4VGA1O9luxSsldG6PfG3XaDpngGHfiOR1cO46TvNWDQS
HUS5uL/wpDfy7ELDKON6QiXHXS5K4NfoKDw3zF5nvlmJUBqHW1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RBS0FOT0JVIFdBVEFOQUJFoBkGBWBMAQMDoBATDjcxNDI4ODc0MDAwMTky
oDgGBWBMAQMEoC8TLTExMDUxOTUxMjE0ODQ2Nzg5MTUwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
MKAXBgVgTAEDB6AOEwwwMDAwMDAwMDAwMDAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwME
MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggIBAEJb/oBSE5IAEAYn+ArQDdHwdDRagfJF6m+R
OxHLvNpToUyJDZurBUyWFeMok41ijmcKETC71Dz+dht+xk54TtNNFtUrd7C+18mmGD52PCH0ALZf
CQcNFZL+mFui9h6UTe4TcT5G/tDnskpr+3TtMMgXVzmYW8pSjAOuHfRWe4yaBLudNinPTvOXz4GN
nOdUJVksCVs640NbiTbwIhRKarOqlFLV9x4zAcubeYQYR0B++NQBB84y+CULn7LDqNhrKlAdx90c
Qc0T/Y27sUpZovqMfcg7Doc+ViWE8KVJtkh3tmG2ANxgKDkSsh9klCVTzdgxwREyYygVw1Rf/jsN
nJ9Y9PEr73kYydc/fq+hSWZwpzqDYqPxXNz4ojbkl9LCkwuRw1LMmNwB7PgnLgZP26TGExQJhXXE
XzjVBFrBbRC9q3EyBQ+Mpq++tAlN0wFzo5wrrTGMiodg87Kf1qocetygChZZx9LBcWW5AhLulJ4n
3agRH6dbDD4125TrF174qFIh5qXvqBjtK7FxgE5mG02AbLcYlKYTd4YRMKbqFs0sXkbICKko+98c
itCpCiuaLm4c+dTgZp35Joq7Rv+NXh9D8/1YgvKsX86ynJkGqfVm8M7itPTM0AqhppqRRU/M1dyt
9B6CbITdyQ2ZJVcsqOwXBsAhN7J8WBw5qImJ2R8t</X509Certificate></X509Data></KeyInfo></Signature></EnviarLoteRpsSincronoEnvio>


Arquivos Anexados
.xml   Resumo-12015123456789012340000000000000001-NFS-e.xml (Tamanho: 6,13 KB / Downloads: 4)
Responder
#2
Bom dia Daniel,

Desculpe pela demora na resposta.
Como esta sendo feita essa validação?
A versão do XML do GOV é 2.01 e o nome do XSD citado parece ter a versão 2.04, pode ser algo ligado a versão.

att,
Hiago
Responder


Pular para Fórum:


Usuários visualizando este tópico: 1 Visitante(s)