Schemas (.XSD) from Eletronics Invoices don't work

mateusantos

New Member
Joined
Aug 17, 2011
Messages
6
Hi,

I'm from Brazil and here we use eletronics invoices distributed in XML files.

I can import it to a Excel Sheet and the program assumes a automatic schema to use it.

But i have to format and mapping every time.

The XSDs files are public and be located in the Brazilian Government site on this link: " http://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=oqjJXubRkb0= "

The name of the last schema pack is: "Esquemas XML NF-e - Pacote de Liberação No. 6i (26/07/2011) (ZIP) "

I try insert the schema through the source-code in the desenvelopers guide in excel and mapping some cells, but don't work.

Thank's for any help.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Have you downloaded the schema(s) and placed them in the correct folder?
 
Upvote 0
Norie, i do this steps:

1. Desenvelopers guide -> Source-code

2. in open windows: XML Maps -> Add -> nfe_v2.00.xsd -> open -> OK

Now the map is loaded is the worksheet.

3. Mapping "ns1:imposto" from schema in range("A1")

4. Desenvelopers guide -> import -> 31956_Mazer.xml

So, this message appear like i not load an schema to folder:

"The XML data file does not refer to a schema, then Microsoft Office Excel infers the schema from the XML data file."

The XML that i try to load is this, it´s has been tested and accepted by other program:
----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?><nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe Id="NFe42110805996801000415550030000339151005880350" versao="2.00"><ide><cUF>42</cUF><cNF>00588035</cNF><natOp>VENDA MERC SUB. TRIB</natOp><indPag>1</indPag><mod>55</mod><serie>3</serie><nNF>33915</nNF><dEmi>2011-08-05</dEmi><tpNF>1</tpNF><cMunFG>4208203</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>0</cDV><tpAmb>1</tpAmb><finNFe>1</finNFe><procEmi>0</procEmi><verProc>1.38</verProc></ide><emit><CNPJ>05996801000415</CNPJ><xNome>INTERSMART COM IMP EXP EQUIP ELETR SA</xNome><xFant>NEETWORK1</xFant><enderEmit><xLgr>R JOSE GALL</xLgr><nro>1115</nro><xBairro>RESSACADA</xBairro><cMun>4208203</cMun><xMun>ITAJAI</xMun><UF>SC</UF><CEP>88307102</CEP><cPais>1058</cPais><xPais>BRASIL</xPais></enderEmit><IE>255211147</IE><CRT>3</CRT></emit><dest><CNPJ>04552591000160</CNPJ><xNome>BJ NET COMERCIO DE COMPUTADORES LTDA - ME</xNome><enderDest><xLgr>R BARAO DO RIO BRANCO</xLgr><nro>324</nro><xCpl>SALA 01</xCpl><xBairro>CENTRO</xBairro><cMun>4202909</cMun><xMun>BRUSQUE</xMun><UF>SC</UF><CEP>88350201</CEP><cPais>1058</cPais><xPais>BRASIL</xPais><fone>4733515545</fone></enderDest><IE>254282857</IE><email>fabiano@bjnet.com.br;</email></dest><det nItem="1"><prod><cProd>239118</cProd><cEAN></cEAN><xProd>JD984A- HP V1405-16 Switch</xProd><NCM>85176239</NCM><CFOP>5403</CFOP><uCom>UN</uCom><qCom>1.0000</qCom><vUnCom>160.35000000</vUnCom><vProd>160.35</vProd><cEANTrib></cEANTrib><uTrib>UN</uTrib><qTrib>1.0000</qTrib><vUnTrib>160.35000000</vUnTrib><vFrete>5.91</vFrete><indTot>1</indTot></prod><imposto><ICMS><ICMS10><orig>0</orig><CST>10</CST><modBC>3</modBC><vBC>166.26</vBC><pICMS>12.00</pICMS><vICMS>19.95</vICMS><modBCST>4</modBCST><pMVAST>37.00</pMVAST><vBCST>227.78</vBCST><pICMSST>17.00</pICMSST><vICMSST>18.77</vICMSST></ICMS10></ICMS><IPI><cEnq>999</cEnq><IPITrib><CST>50</CST><vBC>0</vBC><pIPI>0</pIPI><vIPI>0</vIPI></IPITrib></IPI><PIS><PISAliq><CST>01</CST><vBC>166.26</vBC><pPIS>1.65</pPIS><vPIS>2.74</vPIS></PISAliq></PIS><COFINS><COFINSAliq><CST>01</CST><vBC>166.26</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>12.64</vCOFINS></COFINSAliq></COFINS></imposto></det><total><ICMSTot><vBC>166.26</vBC><vICMS>19.95</vICMS><vBCST>227.78</vBCST><vST>18.77</vST><vProd>160.35</vProd><vFrete>5.91</vFrete><vSeg>0</vSeg><vDesc>0</vDesc><vII>0</vII><vIPI>0</vIPI><vPIS>2.74</vPIS><vCOFINS>12.64</vCOFINS><vOutro>0</vOutro><vNF>185.03</vNF></ICMSTot></total><transp><modFrete>0</modFrete><transporta><CNPJ>07428173000154</CNPJ><xNome>RTF CARGAS E ENCOMENDAS LTDA - ME</xNome><IE>254988164</IE><xEnder>R JOSE JOAO DE SOUZA 586</xEnder><xMun>SAO JOSE</xMun><UF>SC</UF></transporta><vol><esp>CAIXA</esp></vol></transp><cobr><dup><nDup>3 000033915</nDup><dVenc>2011-09-02</dVenc><vDup>185.03</vDup></dup></cobr><infAdic><infCpl># Ped.Network1: 713719 Diferimento parcial do imposto - Res.068/2007 - Pro-Emprego..Esta transacao comercial sera registrada junto aos orgaos de informacoes de credito...COBERTURA DE SEGURO: ZURICH BRASIL SEGUROS S.A., APOLICE 01210153186</infCpl></infAdic><compra></compra></infNFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod><Reference URI="#NFe42110805996801000415550030000339151005880350"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></Transform></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod><DigestValue>Qx5+KeJw4EOUCpmmHxxlWScclB8=</DigestValue></Reference></SignedInfo><SignatureValue>KhC3pGT+hiWOrXtNjrF8lC0IUz1qqiiOLH8JVbOpcW0o4LT7T1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QKnro/rxodaeSOujUxBbwkhb6zvR8t3KgxVlBxN0hN2+6Uf/zRVhCzeq0xVeFR+alIEn1Pm2duilXImMYE7DHKaaGuVl5oQUMw+HpxMRcVCYiLlAdErAwWIVYddU+RLlBiJKoMBl3czk1BiArEBa13bFMhlJxUyQE66esVwAoskgXpM1HuayTTAz1QtcRjixQXEUYMnZ4A==</X509Certificate></X509Data></KeyInfo></Signature></NFe><protNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"><infProt><tpAmb>1</tpAmb><verAplic>SVRS20110801092042</verAplic><chNFe>42110805996801000415550030000339151005880350</chNFe><dhRecbto>2011-08-05T20:12:58</dhRecbto><nProt>342110062912206</nProt><digVal>Qx5+KeJw4EOUCpmmHxxlWScclB8=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>
--------------------------------------------------------------------------
Thank you!
 
Upvote 0
I'm not sure you can, most tags ,eg HTML, tend to vanish because the board software tries to interpret them.

Are there any example files available that you could post a link to or perhaps upload somewhere?

By the way, what are actually trying to do? Just get the data?
 
Upvote 0
Code:
<?xml version="1.0" encoding="UTF-8"?>
<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/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
	[COLOR="Red"]<xs:include schemaLocation="leiauteNFe_v2.00.xsd"/>[/COLOR]
	<xs:element name="NFe" type="TNFe">
		<xs:annotation>
			<xs:documentation>Nota Fiscal Eletrônica</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>

The schema you are trying to load has almost nothing in it - but it does include another schema! You might just try loading that one instead. I don't know enough about XML to be sure but that seems worth a try to me.
 
Upvote 0
I think using de CODE Tag will work, let's try:

Thanks Norie

[text]
<?xml version="1.0" encoding="UTF-8"?><nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe Id="NFe42110805996801000415550030000339151005880350" versao="2.00"><ide><cUF>42</cUF><cNF>00588035</cNF><natOp>VENDA MERC SUB. TRIB</natOp><indPag>1</indPag><mod>55</mod><serie>3</serie><nNF>33915</nNF><dEmi>2011-08-05</dEmi><tpNF>1</tpNF><cMunFG>4208203</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>0</cDV><tpAmb>1</tpAmb><finNFe>1</finNFe><procEmi>0</procEmi><verProc>1.38</verProc></ide><emit><CNPJ>05996801000415</CNPJ><xNome>INTERSMART COM IMP EXP EQUIP ELETR SA</xNome><xFant>NEETWORK1</xFant><enderEmit><xLgr>R JOSE GALL</xLgr><nro>1115</nro><xBairro>RESSACADA</xBairro><cMun>4208203</cMun><xMun>ITAJAI</xMun><UF>SC</UF><CEP>88307102</CEP><cPais>1058</cPais><xPais>BRASIL</xPais></enderEmit><IE>255211147</IE><CRT>3</CRT></emit><dest><CNPJ>04552591000160</CNPJ><xNome>BJ NET COMERCIO DE COMPUTADORES LTDA - ME</xNome><enderDest><xLgr>R BARAO DO RIO BRANCO</xLgr><nro>324</nro><xCpl>SALA 01</xCpl><xBairro>CENTRO</xBairro><cMun>4202909</cMun><xMun>BRUSQUE</xMun><UF>SC</UF><CEP>88350201</CEP><cPais>1058</cPais><xPais>BRASIL</xPais><fone>4733515545</fone></enderDest><IE>254282857</IE><email>fabiano@bjnet.com.br;</email></dest><det nItem="1"><prod><cProd>239118</cProd><cEAN></cEAN><xProd>JD984A- HP V1405-16 Switch</xProd><NCM>85176239</NCM><CFOP>5403</CFOP><uCom>UN</uCom><qCom>1.0000</qCom><vUnCom>160.35000000</vUnCom><vProd>160.35</vProd><cEANTrib></cEANTrib><uTrib>UN</uTrib><qTrib>1.0000</qTrib><vUnTrib>160.35000000</vUnTrib><vFrete>5.91</vFrete><indTot>1</indTot></prod><imposto><ICMS><ICMS10><orig>0</orig><CST>10</CST><modBC>3</modBC><vBC>166.26</vBC><pICMS>12.00</pICMS><vICMS>19.95</vICMS><modBCST>4</modBCST><pMVAST>37.00</pMVAST><vBCST>227.78</vBCST><pICMSST>17.00</pICMSST><vICMSST>18.77</vICMSST></ICMS10></ICMS><IPI><cEnq>999</cEnq><IPITrib><CST>50</CST><vBC>0</vBC><pIPI>0</pIPI><vIPI>0</vIPI></IPITrib></IPI><PIS><PISAliq><CST>01</CST><vBC>166.26</vBC><pPIS>1.65</pPIS><vPIS>2.74</vPIS></PISAliq></PIS><COFINS><COFINSAliq><CST>01</CST><vBC>166.26</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>12.64</vCOFINS></COFINSAliq></COFINS></imposto></det><total><ICMSTot><vBC>166.26</vBC><vICMS>19.95</vICMS><vBCST>227.78</vBCST><vST>18.77</vST><vProd>160.35</vProd><vFrete>5.91</vFrete><vSeg>0</vSeg><vDesc>0</vDesc><vII>0</vII><vIPI>0</vIPI><vPIS>2.74</vPIS><vCOFINS>12.64</vCOFINS><vOutro>0</vOutro><vNF>185.03</vNF></ICMSTot></total><transp><modFrete>0</modFrete><transporta><CNPJ>07428173000154</CNPJ><xNome>RTF CARGAS E ENCOMENDAS LTDA - ME</xNome><IE>254988164</IE><xEnder>R JOSE JOAO DE SOUZA 586</xEnder><xMun>SAO JOSE</xMun><UF>SC</UF></transporta><vol><esp>CAIXA</esp></vol></transp><cobr><dup><nDup>3 000033915</nDup><dVenc>2011-09-02</dVenc><vDup>185.03</vDup></dup></cobr><infAdic><infCpl># Ped.Network1: 713719 Diferimento parcial do imposto - Res.068/2007 - Pro-Emprego..Esta transacao comercial sera registrada junto aos orgaos de informacoes de credito...COBERTURA DE SEGURO: ZURICH BRASIL SEGUROS S.A., APOLICE 01210153186</infCpl></infAdic><compra></compra></infNFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod><Reference URI="#NFe42110805996801000415550030000339151005880350"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></Transform></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod><DigestValue>Qx5+KeJw4EOUCpmmHxxlWScclB8=</DigestValue></Reference></SignedInfo><SignatureValue>KhC3pGT+hiWOrXtNjrF8lC0IUz1qqiiOLH8JVbOpcW0o4LT7T1ZaOxy8hVeQl5XQ/owX/ugKI0quQQdxpsBz0+Jpurgoyzdx5KpvDwKl2jRHPktKq3tASTDa7R4YcszjHN+exKr9hwTYQX+kM8cm9yh7RrG2QGE7xZlUn+z5FFw=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIGSzCCBTOgAwIBAgIIdj4hNBuXO5IwDQYJKoZIhvcNAQEFBQAwTDELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxKDAmBgNVBAMTH1NFUkFTQSBDZXJ0aWZpY2Fkb3JhIERpZ2l0YWwgdjEwHhcNMTEwODAyMTMzMDM4WhcNMTIwODAxMTMzMDM4WjCCAQgxCzAJBgNVBAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMRQwEgYDVQQLEwsoRU0gQlJBTkNPKTEYMBYGA1UECxMPMDAwMDAxMDAyMDAyNzEwMRQwEgYDVQQLEwsoRU0gQlJBTkNPKTEUMBIGA1UECxMLKEVNIEJSQU5DTykxFDASBgNVBAsTCyhFTSBCUkFOQ08pMRQwEgYDVQQLEwsoRU0gQlJBTkNPKTEUMBIGA1UECxMLKEVNIEJSQU5DTykxRjBEBgNVBAMTPUlOVEVSU01BUlQgQ09NRVJDSU8gSU1QIEUgRVhQIERFIEVRVUlQQU1FTlRPUyBFTEV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BQcBAQSBijCBhzBHBggrBgEFBQcwAoY7aHR0cDovL3d3dy5jZXJ0aWZpY2Fkb2RpZ2l0YWwuY29tLmJyL2NhZGVpYXMvc2VyYXNhY2R2MS5wN2IwPAYIKwYBBQUHMAGGMGh0dHA6Ly9vY3NwLmNlcnRpZmljYWRvZGlnaXRhbC5jb20uYnIvc2VyYXNhY2R2MTANBgkqhkiG9w0BAQUFAAOCAQEAMad09G9stQgnLbFUfbpnBZLQA8TZgvuM2c3EPIFPdiMbAaDtErDx8mbSEVZG0uQli7z3H1q7U3qS5oPI39+Jjr9P8y5p/+SeLm5SqezC9NF6o6NCKp3gX0yvyrdRTQWcmoG0pNjlYRDqQKnro/rxodaeSOujUxBbwkhb6zvR8t3KgxVlBxN0hN2+6Uf/zRVhCzeq0xVeFR+alIEn1Pm2duilXImMYE7DHKaaGuVl5oQUMw+HpxMRcVCYiLlAdErAwWIVYddU+RLlBiJKoMBl3czk1BiArEBa13bFMhlJxUyQE66esVwAoskgXpM1HuayTTAz1QtcRjixQXEUYMnZ4A==</X509Certificate></X509Data></KeyInfo></Signature></NFe><protNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"><infProt><tpAmb>1</tpAmb><verAplic>SVRS20110801092042</verAplic><chNFe>42110805996801000415550030000339151005880350</chNFe><dhRecbto>2011-08-05T20:12:58</dhRecbto><nProt>342110062912206</nProt><digVal>Qx5+KeJw4EOUCpmmHxxlWScclB8=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>
[/text]
 
Last edited:
Upvote 0
Well, i change some tags and use the CODE tag and now the XML look good, thanks Norie.

The code below is the XML i that's I try to load without re-mapping all the cells to sheet:


Code:
<?xml version="1.0" encoding="UTF-8"?><nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe versao="2.00" Id="NFe43110892827252000107550010000372081177459356"><ide><cUF>43</cUF><cNF>17745935</cNF><natOp>6403</natOp><indPag>1</indPag><mod>55</mod><serie>1</serie><nNF>37208</nNF><dEmi>2011-08-04</dEmi><dSaiEnt>2011-08-04</dSaiEnt><hSaiEnt>15:45:46</hSaiEnt><tpNF>1</tpNF><cMunFG>4314902</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>6</cDV><tpAmb>1</tpAmb><finNFe>1</finNFe><procEmi>0</procEmi><verProc>2.0.2</verProc></ide><emit><CNPJ>92827252000107</CNPJ><xNome>ASSIST INFORMATICA LTDA</xNome><xFant>DN RS</xFant><enderEmit><xLgr>AVENIDA PERNAMBUCO</xLgr><nro>2540</nro><xBairro>NAVEGANTES</xBairro><cMun>4314902</cMun><xMun>PORTO ALEGRE</xMun><UF>RS</UF><CEP>90240002</CEP><cPais>1058</cPais><xPais>BRASIL</xPais><fone>5133234100</fone></enderEmit><IE>0962061468</IE><IEST>256121036</IEST><IM>09181229</IM><CNAE>4751200</CNAE><CRT>3</CRT></emit><dest><CNPJ>04552591000160</CNPJ><xNome>BJ NET COMERCIO DE COMPUTADORES LTDA ME</xNome><enderDest><xLgr>RUA DO CENTENARIO</xLgr><nro>263</nro><xBairro>CENTRO</xBairro><cMun>4202909</cMun><xMun>BRUSQUE</xMun><UF>SC</UF><CEP>88351020</CEP><cPais>1058</cPais><xPais>BRASIL</xPais></enderDest><IE>254282857</IE></dest><det nItem="1"><prod><cProd>NSC PR</cProd><cEAN /><xProd>IMPRESSORA DE CHEQUES NSC 218 AUTONOMA NA COR PRETO</xProd><NCM>84433229</NCM><CFOP>6403</CFOP><uCom>CX</uCom><qCom>1.0000</qCom><vUnCom>776.5600</vUnCom><vProd>776.56</vProd><cEANTrib /><uTrib>CX</uTrib><qTrib>1.0000</qTrib><vUnTrib>776.5600</vUnTrib><indTot>1</indTot><nItemPed>0</nItemPed></prod><imposto><ICMS><ICMS10><orig>0</orig><CST>10</CST><modBC>3</modBC><vBC>776.56</vBC><pICMS>12.00</pICMS><vICMS>93.19</vICMS><modBCST>4</modBCST><vBCST>1046.96</vBCST><pICMSST>12.00</pICMSST><vICMSST>32.44</vICMSST></ICMS10></ICMS><PIS><PISAliq><CST>01</CST><vBC>809.00</vBC><pPIS>1.65</pPIS><vPIS>13.35</vPIS></PISAliq></PIS><COFINS><COFINSAliq><CST>01</CST><vBC>809.00</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>61.48</vCOFINS></COFINSAliq></COFINS></imposto></det><det nItem="2"><prod><cProd>FS700M G PR SC</cProd><cEAN /><xProd>IMPRESSORA FISCAL MFD FS700 256MB 200MMS SERIALUSB PRETA C G</xProd><NCM>84433239</NCM><CFOP>6403</CFOP><uCom>CX</uCom><qCom>1.0000</qCom><vUnCom>1342.8900</vUnCom><vProd>1342.89</vProd><cEANTrib /><uTrib>CX</uTrib><qTrib>1.0000</qTrib><vUnTrib>1342.8900</vUnTrib><indTot>1</indTot><nItemPed>0</nItemPed></prod><imposto><ICMS><ICMS10><orig>0</orig><CST>10</CST><modBC>3</modBC><vBC>1342.89</vBC><pICMS>12.00</pICMS><vICMS>161.15</vICMS><modBCST>4</modBCST><vBCST>1810.48</vBCST><pICMSST>12.00</pICMSST><vICMSST>56.11</vICMSST></ICMS10></ICMS><PIS><PISAliq><CST>01</CST><vBC>1399.00</vBC><pPIS>1.65</pPIS><vPIS>23.08</vPIS></PISAliq></PIS><COFINS><COFINSAliq><CST>01</CST><vBC>1399.00</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>106.32</vCOFINS></COFINSAliq></COFINS></imposto></det><total><ICMSTot><vBC>2119.45</vBC><vICMS>254.34</vICMS><vBCST>2857.44</vBCST><vST>88.55</vST><vProd>2119.45</vProd><vFrete>0.00</vFrete><vSeg>0.00</vSeg><vDesc>0.00</vDesc><vII>0.00</vII><vIPI>0.00</vIPI><vPIS>36.43</vPIS><vCOFINS>167.81</vCOFINS><vOutro>0.00</vOutro><vNF>2208.00</vNF></ICMSTot></total><transp><modFrete>0</modFrete><transporta><CNPJ>48740351011523</CNPJ><xNome>BRASPRESS TRANSPORTES URGENTES LTDA</xNome><IE>795074476118</IE><xEnder>RUA RICARDO DIAS ALVES 381 TERMINAL INTERMODAL DE CARGAS TIC</xEnder><xMun>CAMPINAS</xMun><UF>SP</UF></transporta><vol><qVol>2</qVol></vol></transp><cobr><fat><nFat>37208</nFat><vOrig>2208.00</vOrig><vLiq>2208.00</vLiq></fat><dup><nDup>01</nDup><dVenc>2011-09-03</dVenc><vDup>735.94</vDup></dup><dup><nDup>02</nDup><dVenc>2011-10-03</dVenc><vDup>735.92</vDup></dup><dup><nDup>03</nDup><dVenc>2011-11-02</dVenc><vDup>736.14</vDup></dup></cobr><infAdic><infAdFisco>Pedido 48969 PROTOCOLO 192 DE 11122009 DOU 21122009 A B CAPITULO II  REDUCAO DA BASE DE CALCULO  SECAO I  ATS 7o INCISO VII E ALINEAS A REDUCAO DE BC RICMS ART23 APENDICE A  RESOLUCAO SUFRAMA 0362001 B IPI  LEI 101762001 E PORTARIA INTERMINISTERIAL MCT 86</infAdFisco></infAdic></infNFe><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="#NFe43110892827252000107550010000372081177459356"><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>dWfV3oRmqAAbU+GxseLqvWypz7Q=</DigestValue></Reference></SignedInfo><SignatureValue>orcpIU9wtUZZnGVL2G3qGAxCYL2NUcmrAfCfmRbetqgLZ78bl3K+IVxArF2eSYofgQBNbAHfam7RYDvsSJjaxk5LSCNsvsSJySrJ0ti14KWqtwx2znI9dMrVI6svvql+floLGq5cMqMI5/2ymfqHmKir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TOmyuqzfFCF6NyXuawsrRgYIvoInFpw8n4hJMquYEdJKGQDBN4SFtuTVBpOIZxo26rLr0WPPXC5w6Gqow4SeaoUVcQicn2Pu8YZl7DB2lAOSmIWOJ9obg==</X509Certificate></X509Data></KeyInfo></Signature></NFe><protNFe versao="2.00" xmlns="http://www.portalfiscal.inf.br/nfe"><infProt Id="ID143110091241414"><tpAmb>1</tpAmb><verAplic>RS20110801083135</verAplic><chNFe>43110892827252000107550010000372081177459356</chNFe><dhRecbto>2011-08-04T15:47:32</dhRecbto><nProt>143110091241414</nProt><digVal>dWfV3oRmqAAbU+GxseLqvWypz7Q=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>
 
Last edited:
Upvote 0
Xenou,

really the main schema include other schemas, but this look work properly because the excel load and show the map correctly

The others schemas "called by others" are included in same folder and looking work good.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top