TOO MANY LINES CONTINUATIONS
Boa Tarde !!
como resolvo este problema que me apareceu agora ?
[Ô]TOO MANY LINES CONTINUATIONS[Ô]
[ô]---------------------
Dim doc As DOMDocument
Set doc = New DOMDocument
doc.loadXML [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô] & _
[Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô]
[ô] se eu colocar mais uma linha aqui da esta msg de erro !
[ô] se deixar assim cria o arquivo xml
doc.Save [Ô]C:\43090594760873000146550010000010001151557461.xml[Ô]
MsgBox [Ô]Arquivo XML não foi criado com sucesso até agora![Ô]
[ô]================
Obrigado
como resolvo este problema que me apareceu agora ?
[Ô]TOO MANY LINES CONTINUATIONS[Ô]
[ô]---------------------
Dim doc As DOMDocument
Set doc = New DOMDocument
doc.loadXML [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô] & _
[Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô]
[ô] se eu colocar mais uma linha aqui da esta msg de erro !
[ô] se deixar assim cria o arquivo xml
doc.Save [Ô]C:\43090594760873000146550010000010001151557461.xml[Ô]
MsgBox [Ô]Arquivo XML não foi criado com sucesso até agora![Ô]
[ô]================
Obrigado
Dim doc As DOMDocument
[txt-color=#e80000]Dim stringXml as String[/txt-color]
Set doc = New DOMDocument
[txt-color=#e80000] stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô][/txt-color]
[txt-color=#e80000]doc.loadXML stringXml[/txt-color]
doc.Save [Ô]C:\43090594760873000146550010000010001151557461.xml[Ô]
[txt-color=#e80000]Dim stringXml as String[/txt-color]
Set doc = New DOMDocument
[txt-color=#e80000] stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô][/txt-color]
[txt-color=#e80000]doc.loadXML stringXml[/txt-color]
doc.Save [Ô]C:\43090594760873000146550010000010001151557461.xml[Ô]
FEDERHEN , Obrigado por Responder !!
Mas olha este erro ....
O documento XML deve ter um elemento de nÃvel superior. Erro ao processar o recurso [ô]file:///C:/430905947608730001465500100...
codigo :
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] [ô] & _
[ô]tirando esta parte funcionou bem
[ô][Ô]<emit>[Ô] & _
[ô][Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[ô][Ô]<IE>1090137912</IE>[Ô] & _
[ô][Ô]</emit>[Ô]
doc.loadXML stringXml
Obrigado
Mas olha este erro ....
O documento XML deve ter um elemento de nÃvel superior. Erro ao processar o recurso [ô]file:///C:/430905947608730001465500100...
codigo :
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] [ô] & _
[ô]tirando esta parte funcionou bem
[ô][Ô]<emit>[Ô] & _
[ô][Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[ô][Ô]<IE>1090137912</IE>[Ô] & _
[ô][Ô]</emit>[Ô]
doc.loadXML stringXml
Obrigado
No Erro mencionado : não é só no I.E. e tentei resolver pensando ser o navegador , mas nada ....
é a estrutura do xml que está com erro, ai já é outra coisa, o erro do [Ô]TOO MANY LINES CONTINUATIONS[Ô] já foi corrigido, verifique se não está faltando fechar alguma Tag.
Coloquei o codigo este que esta ai na página no Notepad ++ e marcando , contando (< > , < /> , esta aparentemente correto ;
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[Ô] </ide>[Ô]
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[Ô] </ide>[Ô]
LUIZCOMINO ., AGRADEÇO MAS ... VEJA ;
Agora que o Tio ta mais enrrolado , vou colocar um xml inteiro para vc ver lá no final da pagina ;
[ô]############################
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] [ô] esta linha vai abaixo de [Ô] </toma03>[Ô] & _
[Ô]<emit>[Ô] & _ [ô] e os dados do emitente vem em seguida na ordem
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[ô]##################################
[ô] este esta correto é exemplo no site da secretaria da fazenda do RS
- <enviCTe xmlns=[Ô]http://www.portalfiscal.inf.br/cte[Ô] versao=[Ô]1.02[Ô]>
<idLote>1</idLote>
- <CTe>
- <infCte Id=[Ô]CTe43090395591723003053570000000000010000000000[Ô] versao=[Ô]1.02[Ô]>
- <ide>
<cUF>43</cUF>
<cCT>000000000</cCT>
<CFOP>5353</CFOP>
<natOp>SERVICO DE TRANSPORTE</natOp>
<forPag>0</forPag>
<mod>57</mod>
<serie>0</serie>
<nCT>1</nCT>
<dhEmi>2009-03-02T07:15:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>0</cDV>
<tpAmb>1</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
<verProc>1</verProc>
<cMunEmi>4316907</cMunEmi>
<xMunEmi>SANTA MARIA</xMunEmi>
<UFEmi>RS</UFEmi>
<modal>01</modal>
<tpServ>0</tpServ>
<cMunIni>4316907</cMunIni>
<xMunIni>SANTA MARIA</xMunIni>
<UFIni>RS</UFIni>
<cMunFim>4307005</cMunFim>
<xMunFim>ERECHIM</xMunFim>
<UFFim>RS</UFFim>
<retira>1</retira>
- <toma03>
<toma>0</toma>
</toma03>
</ide>
- <compl>
<xCaracSer>NORMAL</xCaracSer>
<xEmi>LEANDRO L OLIVEIRA</xEmi>
- <fluxo>
<xOrig>SM</xOrig>
<xDest>ER</xDest>
</fluxo>
- <Entrega>
- <comData>
<tpPer>2</tpPer>
<dProg>2009-03-04</dProg>
</comData>
- <semHora>
<tpHor>0</tpHor>
</semHora>
</Entrega>
<xObs>ICMS ISENTO - CONFORME LIVRO I, ART 10 INCISO IX - RICMS/97||LOCALIZE SUA CARGA NO SITE WWW.MERCURIO.COM||FP 0,94 18,35 VT 170,38 PR 50 /A%V 0,10 /AVV 2,34</xObs>
</compl>
- <emit>
<CNPJ>95591723003053</CNPJ>
<IE>1090137912</IE>
<xNome>EXPRESSO MERCURIO S.A.</xNome>
<xFant>TNT MERCURIO</xFant>
- <enderEmit>
<xLgr>R ANGELO BOLSON</xLgr>
<nro>394</nro>
<xBairro>MEDIANEIRA</xBairro>
<cMun>4316907</cMun>
<xMun>SANTA MARIA</xMun>
<CEP>97070000</CEP>
<UF>RS</UF>
</enderEmit>
</emit>
- <rem>
<CNPJ>94477882000124</CNPJ>
<IE>1090173145</IE>
<xNome>RODOAUTO COM PNEUS LTDA</xNome>
<fone>005532228108</fone>
- <enderReme>
<xLgr>R DUQUE DE CAXIAS</xLgr>
<nro>2650</nro>
<xBairro>CENTRO</xBairro>
<cMun>4316907</cMun>
<xMun>SANTA MARIA</xMun>
<CEP>97070100</CEP>
<UF>RS</UF>
</enderReme>
- <infNF>
<serie>0</serie>
<nDoc>024292</nDoc>
<dEmi>2009-02-27</dEmi>
<vBC>0</vBC>
<vICMS>0</vICMS>
<vBCST>0</vBCST>
<vST>0</vST>
<vProd>0</vProd>
<vNF>5402.19</vNF>
<nCFOP>5405</nCFOP>
<nPeso>250</nPeso>
</infNF>
</rem>
- <dest>
<CNPJ>94160991000113</CNPJ>
<IE>0390062065</IE>
<xNome>DINECAR AUTO E MOTO PECAS LTDA</xNome>
- <enderDest>
<xLgr>RUA CESARIO DE MATOS</xLgr>
<nro>74</nro>
<xBairro>CENTRO</xBairro>
<cMun>4307005</cMun>
<xMun>ERECHIM</xMun>
<CEP>99700000</CEP>
<UF>RS</UF>
</enderDest>
</dest>
- <vPrest>
<vTPrest>59.69</vTPrest>
<vRec>59.69</vRec>
- <Comp>
<xNome>FRETE VALOR</xNome>
<vComp>50.78</vComp>
</Comp>
- <Comp>
<xNome>GRIS</xNome>
<vComp>5.40</vComp>
</Comp>
- <Comp>
<xNome>PEDAGIO</xNome>
<vComp>3.51</vComp>
</Comp>
</vPrest>
- <imp>
- <ICMS>
- <CST45>
<CST>40</CST>
</CST45>
</ICMS>
</imp>
- <infCTeNorm>
- <infCarga>
<vMerc>0</vMerc>
<proPred>PNEUS</proPred>
- <infQ>
<cUnid>01</cUnid>
<tpMed>PESO</tpMed>
<qCarga>31</qCarga>
</infQ>
</infCarga>
- <rodo>
<RNTRC>00001020000411</RNTRC>
<dPrev>2009-03-04</dPrev>
<lota>0</lota>
</rodo>
</infCTeNorm>
</infCte>
- <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=[Ô]#CTe43090395591723003053570000000000010000000000[Ô]>
- <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>7yHH+jyreFQC9LQFC5lAkPha4qw=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>AviP/QT0X4vbOKs/UNksfbKsfOfSMK+xrrVrks76Bv85DGSbAUD+EN+1PVhV+D1pESDrG7Y4n7ZZrevyv9jhPx6nGWfsZICXuE+uB56Lk1e1LWXN393fYnLDMipSLlBTXj622/UWATX3vE7CuWIOH2iKkEgZDnEgF3OxnYHsvDg=</SignatureValue>
- <KeyInfo>
- <X509Data>
<X509Certificate>MIIFnzCCBIegAwIBAgIQS+we2vriihF+j2vC90R1sTANBgkqhkiG9w0BAQUFADBuMQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDEsMCoGA1UECxMjU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgLSBTUkYxHDAaBgNVBAMTE0FDIENlcnRpU2lnbiBTUkYgVjMwHhcNMDgwNjA0MDAwMDAwWhcNMDkwNjA0MjM1OTU5WjCBtjELMAkGA1UEBhMCQlIxCzAJBgNVBAgTAlJTMRUwEwYDVQQHFAxQb3J0byBBbGVncmUxEzARBgNVBAoUCklDUC1CcmFzaWwxKjAoBgNVBAsUIVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsLVNSRjETMBEGA1UECxQKU1JGIGUtQ05QSjEtMCsGA1UEAxMkRVhQUkVTU08gTUVSQ1VSSU8gUyBBOjk1NTkxNzIzMDAwMTE5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCi1YXwr+10CUAs6m6u2ch3lft6sBAOe1iBZT3qlY3XuKTj0ylsCmE+BglXm3lJ4ZX2oiIPlBnhQu6g2Y9J30ubJqE4qq5/Pcr52FeHPWBkLTLWqajfx+Ju45X78i8TL3aYELyZZqcge7U/jkAZ10j5dfYiFLXGLeDEG0miTCgEwIDAQABo4ICcjCCAm4wgcAGA1UdEQSBuDCBtaA9BgVgTAEDBKA0BDIyMzA5MTk2NDA3NTc5MjY0ODcwMDAwMDAwMDAwMDAwMDAwMDgwODMxNDAyNjJTU1BSU6AgBgVgTAEDAqAXBBVDTEFVRElPIE1FTExPIEUgU09VWkGgGQYFYEwBAwOgEAQOOTU1OTE3MjMwMDAxMTmgFwYFYEwBAwegDgQMMDAwMDAwMDAwMDAwgR5tYXR0aWEubGV0aWNpYUB0bnRtZXJjdXJpby5jb20wCQYDVR0TBAIwADAfBgNVHSMEGDAWgBT2nVld/r/Fcs3dzsQuZhsu7gjPdjAOBgNVHQ8BAf8EBAMCBeAwgbwGA1UdHwSBtDCBsTBXoFWgU4ZRaHR0cDovL2ljcC1icmFzaWwuY2VydGlzaWduLmNvbS5ici9yZXBvc2l0b3Jpby9sY3IvQUNDZXJ0aVNpZ25TUkZWMy9MYXRlc3RDUkwuY3JsMFagVKBShlBodHRwOi8vaWNwLWJyYXNpbC5vdXRyYWxjci5jb20uYnIvcmVwb3NpdG9yaW8vbGNyL0FDQ2VydGlTaWduU1JGVjMvTGF0ZXN0Q1JMLmNybDBVBgNVHSAETjBMMEoGBmBMAQIBDDBAMD4GCCsGAQUFBwIBFjJodHRwOi8vaWNwLWJyYXNpbC5jZXJ0aXNpZ24uY29tLmJyL3JlcG9zaXRvcmlvL2RwYzAdBgNVHSUEFjAUBggrBgEFBQcDBAYIKwYBBQUHAwIwOAYIKwYBBQUHAQEELDAqMCgGCCsGAQUFBzABhhxodHRwOi8vb2NzcC5jZXJ0aXNpZ24uY29tLmJyMA0GCSqGSIb3DQEBBQUAA4IBAQCGfPnFaIzR1Howkw6ZDzkdes17M8ERTEVen/5SrbJhvI1TiwbB1P+e763icdAV5IU4CZNHHV2ieOgimMb3Q8y93G7HKtXD2Q9TMLAJsjI4v2KjRX02TOjQ+IHndQPy9GX4SzTkEAquWHb/GdywrQ1LFhgxWFsqHQsduK8JhCwDoKw/LRwp+e9kz++F7mMZwHxNooKDEBW9VHReX5z9Nfy4IL1s0qTxtBkpMz+W9fST0XLGb2XBoQlioKt/SFmJAeyOe2p98oM48iuRh7YASZQKW/4xD0ewALivRoqPmtMANuXCpNY9anK6Ut7XvjLMeKDqpfCkBQbLva3O6rRXeXAd</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</CTe>
</enviCTe>
Agora que o Tio ta mais enrrolado , vou colocar um xml inteiro para vc ver lá no final da pagina ;
[ô]############################
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] </ide>[Ô] [ô] esta linha vai abaixo de [Ô] </toma03>[Ô] & _
[Ô]<emit>[Ô] & _ [ô] e os dados do emitente vem em seguida na ordem
[Ô]<CNPJ>95591723003053</CNPJ>[Ô] & _
[Ô]<IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[ô]##################################
[ô] este esta correto é exemplo no site da secretaria da fazenda do RS
- <enviCTe xmlns=[Ô]http://www.portalfiscal.inf.br/cte[Ô] versao=[Ô]1.02[Ô]>
<idLote>1</idLote>
- <CTe>
- <infCte Id=[Ô]CTe43090395591723003053570000000000010000000000[Ô] versao=[Ô]1.02[Ô]>
- <ide>
<cUF>43</cUF>
<cCT>000000000</cCT>
<CFOP>5353</CFOP>
<natOp>SERVICO DE TRANSPORTE</natOp>
<forPag>0</forPag>
<mod>57</mod>
<serie>0</serie>
<nCT>1</nCT>
<dhEmi>2009-03-02T07:15:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>0</cDV>
<tpAmb>1</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
<verProc>1</verProc>
<cMunEmi>4316907</cMunEmi>
<xMunEmi>SANTA MARIA</xMunEmi>
<UFEmi>RS</UFEmi>
<modal>01</modal>
<tpServ>0</tpServ>
<cMunIni>4316907</cMunIni>
<xMunIni>SANTA MARIA</xMunIni>
<UFIni>RS</UFIni>
<cMunFim>4307005</cMunFim>
<xMunFim>ERECHIM</xMunFim>
<UFFim>RS</UFFim>
<retira>1</retira>
- <toma03>
<toma>0</toma>
</toma03>
</ide>
- <compl>
<xCaracSer>NORMAL</xCaracSer>
<xEmi>LEANDRO L OLIVEIRA</xEmi>
- <fluxo>
<xOrig>SM</xOrig>
<xDest>ER</xDest>
</fluxo>
- <Entrega>
- <comData>
<tpPer>2</tpPer>
<dProg>2009-03-04</dProg>
</comData>
- <semHora>
<tpHor>0</tpHor>
</semHora>
</Entrega>
<xObs>ICMS ISENTO - CONFORME LIVRO I, ART 10 INCISO IX - RICMS/97||LOCALIZE SUA CARGA NO SITE WWW.MERCURIO.COM||FP 0,94 18,35 VT 170,38 PR 50 /A%V 0,10 /AVV 2,34</xObs>
</compl>
- <emit>
<CNPJ>95591723003053</CNPJ>
<IE>1090137912</IE>
<xNome>EXPRESSO MERCURIO S.A.</xNome>
<xFant>TNT MERCURIO</xFant>
- <enderEmit>
<xLgr>R ANGELO BOLSON</xLgr>
<nro>394</nro>
<xBairro>MEDIANEIRA</xBairro>
<cMun>4316907</cMun>
<xMun>SANTA MARIA</xMun>
<CEP>97070000</CEP>
<UF>RS</UF>
</enderEmit>
</emit>
- <rem>
<CNPJ>94477882000124</CNPJ>
<IE>1090173145</IE>
<xNome>RODOAUTO COM PNEUS LTDA</xNome>
<fone>005532228108</fone>
- <enderReme>
<xLgr>R DUQUE DE CAXIAS</xLgr>
<nro>2650</nro>
<xBairro>CENTRO</xBairro>
<cMun>4316907</cMun>
<xMun>SANTA MARIA</xMun>
<CEP>97070100</CEP>
<UF>RS</UF>
</enderReme>
- <infNF>
<serie>0</serie>
<nDoc>024292</nDoc>
<dEmi>2009-02-27</dEmi>
<vBC>0</vBC>
<vICMS>0</vICMS>
<vBCST>0</vBCST>
<vST>0</vST>
<vProd>0</vProd>
<vNF>5402.19</vNF>
<nCFOP>5405</nCFOP>
<nPeso>250</nPeso>
</infNF>
</rem>
- <dest>
<CNPJ>94160991000113</CNPJ>
<IE>0390062065</IE>
<xNome>DINECAR AUTO E MOTO PECAS LTDA</xNome>
- <enderDest>
<xLgr>RUA CESARIO DE MATOS</xLgr>
<nro>74</nro>
<xBairro>CENTRO</xBairro>
<cMun>4307005</cMun>
<xMun>ERECHIM</xMun>
<CEP>99700000</CEP>
<UF>RS</UF>
</enderDest>
</dest>
- <vPrest>
<vTPrest>59.69</vTPrest>
<vRec>59.69</vRec>
- <Comp>
<xNome>FRETE VALOR</xNome>
<vComp>50.78</vComp>
</Comp>
- <Comp>
<xNome>GRIS</xNome>
<vComp>5.40</vComp>
</Comp>
- <Comp>
<xNome>PEDAGIO</xNome>
<vComp>3.51</vComp>
</Comp>
</vPrest>
- <imp>
- <ICMS>
- <CST45>
<CST>40</CST>
</CST45>
</ICMS>
</imp>
- <infCTeNorm>
- <infCarga>
<vMerc>0</vMerc>
<proPred>PNEUS</proPred>
- <infQ>
<cUnid>01</cUnid>
<tpMed>PESO</tpMed>
<qCarga>31</qCarga>
</infQ>
</infCarga>
- <rodo>
<RNTRC>00001020000411</RNTRC>
<dPrev>2009-03-04</dPrev>
<lota>0</lota>
</rodo>
</infCTeNorm>
</infCte>
- <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=[Ô]#CTe43090395591723003053570000000000010000000000[Ô]>
- <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>7yHH+jyreFQC9LQFC5lAkPha4qw=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>AviP/QT0X4vbOKs/UNksfbKsfOfSMK+xrrVrks76Bv85DGSbAUD+EN+1PVhV+D1pESDrG7Y4n7ZZrevyv9jhPx6nGWfsZICXuE+uB56Lk1e1LWXN393fYnLDMipSLlBTXj622/UWATX3vE7CuWIOH2iKkEgZDnEgF3OxnYHsvDg=</SignatureValue>
- <KeyInfo>
- <X509Data>
<X509Certificate>MIIFnzCCBIegAwIBAgIQS+we2vriihF+j2vC90R1sTANBgkqhkiG9w0BAQUFADBuMQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDEsMCoGA1UECxMjU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgLSBTUkYxHDAaBgNVBAMTE0FDIENlcnRpU2lnbiBTUkYgVjMwHhcNMDgwNjA0MDAwMDAwWhcNMDkwNjA0MjM1OTU5WjCBtjELMAkGA1UEBhMCQlIxCzAJBgNVBAgTAlJTMRUwEwYDVQQHFAxQb3J0byBBbGVncmUxEzARBgNVBAoUCklDUC1CcmFzaWwxKjAoBgNVBAsUIVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsLVNSRjETMBEGA1UECxQKU1JGIGUtQ05QSjEtMCsGA1UEAxMkRVhQUkVTU08gTUVSQ1VSSU8gUyBBOjk1NTkxNzIzMDAwMTE5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCi1YXwr+10CUAs6m6u2ch3lft6sBAOe1iBZT3qlY3XuKTj0ylsCmE+BglXm3lJ4ZX2oiIPlBnhQu6g2Y9J30ubJqE4qq5/Pcr52FeHPWBkLTLWqajfx+Ju45X78i8TL3aYELyZZqcge7U/jkAZ10j5dfYiFLXGLeDEG0miTCgEwIDAQABo4ICcjCCAm4wgcAGA1UdEQSBuDCBtaA9BgVgTAEDBKA0BDIyMzA5MTk2NDA3NTc5MjY0ODcwMDAwMDAwMDAwMDAwMDAwMDgwODMxNDAyNjJTU1BSU6AgBgVgTAEDAqAXBBVDTEFVRElPIE1FTExPIEUgU09VWkGgGQYFYEwBAwOgEAQOOTU1OTE3MjMwMDAxMTmgFwYFYEwBAwegDgQMMDAwMDAwMDAwMDAwgR5tYXR0aWEubGV0aWNpYUB0bnRtZXJjdXJpby5jb20wCQYDVR0TBAIwADAfBgNVHSMEGDAWgBT2nVld/r/Fcs3dzsQuZhsu7gjPdjAOBgNVHQ8BAf8EBAMCBeAwgbwGA1UdHwSBtDCBsTBXoFWgU4ZRaHR0cDovL2ljcC1icmFzaWwuY2VydGlzaWduLmNvbS5ici9yZXBvc2l0b3Jpby9sY3IvQUNDZXJ0aVNpZ25TUkZWMy9MYXRlc3RDUkwuY3JsMFagVKBShlBodHRwOi8vaWNwLWJyYXNpbC5vdXRyYWxjci5jb20uYnIvcmVwb3NpdG9yaW8vbGNyL0FDQ2VydGlTaWduU1JGVjMvTGF0ZXN0Q1JMLmNybDBVBgNVHSAETjBMMEoGBmBMAQIBDDBAMD4GCCsGAQUFBwIBFjJodHRwOi8vaWNwLWJyYXNpbC5jZXJ0aXNpZ24uY29tLmJyL3JlcG9zaXRvcmlvL2RwYzAdBgNVHSUEFjAUBggrBgEFBQcDBAYIKwYBBQUHAwIwOAYIKwYBBQUHAQEELDAqMCgGCCsGAQUFBzABhhxodHRwOi8vb2NzcC5jZXJ0aXNpZ24uY29tLmJyMA0GCSqGSIb3DQEBBQUAA4IBAQCGfPnFaIzR1Howkw6ZDzkdes17M8ERTEVen/5SrbJhvI1TiwbB1P+e763icdAV5IU4CZNHHV2ieOgimMb3Q8y93G7HKtXD2Q9TMLAJsjI4v2KjRX02TOjQ+IHndQPy9GX4SzTkEAquWHb/GdywrQ1LFhgxWFsqHQsduK8JhCwDoKw/LRwp+e9kz++F7mMZwHxNooKDEBW9VHReX5z9Nfy4IL1s0qTxtBkpMz+W9fST0XLGb2XBoQlioKt/SFmJAeyOe2p98oM48iuRh7YASZQKW/4xD0ewALivRoqPmtMANuXCpNY9anK6Ut7XvjLMeKDqpfCkBQbLva3O6rRXeXAd</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</CTe>
</enviCTe>
não entendi..., qual é o erro?
se eu colocar como vc fez antes o </ide> no final , funciona !!!
mas veja que o </ide> , termina abaixo de </toma03>
- <toma03>
<toma>0</toma>
</toma03>
</ide>
[ô]###################
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] <compl>[Ô] & _
[Ô]<xCaracSer>NORMAL</xCaracSer><xEmi>LEANDRO L OLIVEIRA</xEmi>[Ô] & _
[Ô]<fluxo>[Ô] & _
[Ô]<xOrig>SM</xOrig><xDest>ER</xDest>[Ô] & _
[Ô]</fluxo>[Ô] & _
[Ô]<Entrega>[Ô] & _
[Ô]<comData>[Ô] & _
[Ô]<tpPer>2</tpPer><dProg>2009-03-04</dProg></comData>[Ô] & _
[Ô]<semHora><tpHor>0</tpHor></semHora>[Ô] & _
[Ô]</Entrega>[Ô] & _
[Ô]<xObs>ICMS ISENTO - CONFORME LIVRO I, ART 10 INCISO IX - RICMS/97||LOCALIZE SUA CARGA NO SITE WWW.MERCURIO.COM||FP 0,94 18,35 VT 170,38 PR 50 /A%V 0,10 /AVV 2,34</xObs>[Ô] & _
[Ô]</compl>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ><IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[Ô]</ide>[Ô] [txt-color=#e80000][ô] OLHA ONDE COLOQUEI TB O </ide> E FUNCIONA PERFEITO
[ô]SE NÃO FIZER ISTO NEM CRIA O ARQUIVO 0 KB[/txt-color]
mas veja que o </ide> , termina abaixo de </toma03>
- <toma03>
<toma>0</toma>
</toma03>
</ide>
[ô]###################
stringXml = [Ô]<?xml version=[Ô][Ô]1.0[Ô][Ô]?>[Ô] & _
[Ô] <ide>[Ô] & _
[Ô] <cUF>43</cUF> <cCT>000000000</cCT>[Ô] & _
[Ô] <CFOP>6353</CFOP> <natOp>TRANSPORTE RODOVIARIO DE CARGAS</natOp>[Ô] & _
[Ô] <ForPag>0</ForPag> <mod>57</mod>[Ô] & _
[Ô] <serie>1</serie> <nCT>1</nCT>[Ô] & _
[Ô] <dhEmi>2013-01-11T13:33:00</dhEmi> <tpImp>1</tpImp>[Ô] & _
[Ô] <tpEmis>1</tpEmis> <cDV>0</cDV>[Ô] & _
[Ô] <tpAmb>1</tpAmb> <tpCTe>0</tpCTe>[Ô] & _
[Ô] <procEmi>0</procEmi> <verProc>1</verProc>[Ô] & _
[Ô] <cMunEmi>4307708</cMunEmi> <xMunEmi>ESTEIO</xMunEmi>[Ô] & _
[Ô] <UFEmi>RS</UFEmi> <modal>01</modal>[Ô] & _
[Ô] <tpServ>0</tpServ> <cMunIni>4307708</cMunIni>[Ô] & _
[Ô] <xMunIni>ESTEIO</xMunIni> <UFIni>RS</UFIni>[Ô]
stringXml = stringXml & [Ô] <cMunFim>4307005</cMunFim> <xMunFim>ERECHIM</xMunFim>[Ô] & _
[Ô] <UFFim>RS</UFFim> <retira>1</retira>[Ô] & _
[Ô] <toma03>[Ô] & _
[Ô] <toma>0</toma>[Ô] & _
[Ô] </toma03>[Ô] & _
[Ô] <compl>[Ô] & _
[Ô]<xCaracSer>NORMAL</xCaracSer><xEmi>LEANDRO L OLIVEIRA</xEmi>[Ô] & _
[Ô]<fluxo>[Ô] & _
[Ô]<xOrig>SM</xOrig><xDest>ER</xDest>[Ô] & _
[Ô]</fluxo>[Ô] & _
[Ô]<Entrega>[Ô] & _
[Ô]<comData>[Ô] & _
[Ô]<tpPer>2</tpPer><dProg>2009-03-04</dProg></comData>[Ô] & _
[Ô]<semHora><tpHor>0</tpHor></semHora>[Ô] & _
[Ô]</Entrega>[Ô] & _
[Ô]<xObs>ICMS ISENTO - CONFORME LIVRO I, ART 10 INCISO IX - RICMS/97||LOCALIZE SUA CARGA NO SITE WWW.MERCURIO.COM||FP 0,94 18,35 VT 170,38 PR 50 /A%V 0,10 /AVV 2,34</xObs>[Ô] & _
[Ô]</compl>[Ô] & _
[Ô]<emit>[Ô] & _
[Ô]<CNPJ>95591723003053</CNPJ><IE>1090137912</IE>[Ô] & _
[Ô]</emit>[Ô] & _
[Ô]</ide>[Ô] [txt-color=#e80000][ô] OLHA ONDE COLOQUEI TB O </ide> E FUNCIONA PERFEITO
[ô]SE NÃO FIZER ISTO NEM CRIA O ARQUIVO 0 KB[/txt-color]
ESTRUTURA DO ARQ XML
<enviCTe xmlns=[Ô]http://www.portalfiscal.inf.br/cte[Ô] versao=[Ô]1.02[Ô]>
<idLote>1</idLote>
<CTe>
<infCte Id=[Ô]CTe43090395591723003053570000000000010000000000[Ô] versao=[Ô]1.02[Ô]>
<ide>
</ide>
----------
<compl>
</compl>
----------
<emit>
</emit>
----------
<rem>
</rem>
----------
<dest>
</dest>
-----------
<vPrest>
</vPrest>
-----------
<imp>
</imp>
---------------------
<infCTeNorm>
</infCTeNorm>
----------------------
</infCte>
</CTe>
</enviCTe>
<enviCTe xmlns=[Ô]http://www.portalfiscal.inf.br/cte[Ô] versao=[Ô]1.02[Ô]>
<idLote>1</idLote>
<CTe>
<infCte Id=[Ô]CTe43090395591723003053570000000000010000000000[Ô] versao=[Ô]1.02[Ô]>
<ide>
</ide>
----------
<compl>
</compl>
----------
<emit>
</emit>
----------
<rem>
</rem>
----------
<dest>
</dest>
-----------
<vPrest>
</vPrest>
-----------
<imp>
</imp>
---------------------
<infCTeNorm>
</infCTeNorm>
----------------------
</infCte>
</CTe>
</enviCTe>
Faça seu login para responder