MICHELI_MARTINS Posted October 15, 2013 Report Share Posted October 15, 2013 (edited) Boa tarde pessoal. Preciso pegar dados da tag retorno infprot, porém não estou conseguindo. Segue o codigo: nodepai:= vXMLDoc.DocumentElement.childNodes.FindNode('soap:Body'); //aqui ele encontra. NodePai.ChildNodes.First; repeat nodepai.NextSibling; until nodepai = NodePai.ChildNodes['infProt']; Como fazer para parar nessa tag infprot? Tentei pegar dessa forma abaixo e tb não consigo: nodepai:= wxmlpro.DocumentElement.ChildNodes.FindNode('soap:Body'); NodeSec:= NodePai.ChildNodes.FindNode('nfeConsultaNF2Result'); NodeSec:= nodesec.ChildNodes.FindNode('retConsSitNFe'); NodeSec:= nodesec.ChildNodes.FindNode('protNFe'); NodeSec:= nodesec.ChildNodes.FindNode('infProt'); wtipamb := NodeSec.childnodes['tpamb'].text; wverapl := NodeSec.childnodes['verAplic'].text; wchanfe := NodeSec.childnodes['chNFe'].text; wdatrec := NodeSec.childnodes['dhRecbto'].text; wnumpro := NodeSec.childnodes['nProt'].text; wdigval := NodeSec.childnodes['digVal'].text; wstatus := NodeSec.childnodes['cStat'].text; wmotivo := NodeSec.childnodes['xMotivo'].text; Edited October 16, 2013 by MICHELI_MARTINS Quote Link to comment Share on other sites More sharing options...
0 Jhonas Posted October 18, 2013 Report Share Posted October 18, 2013 veja com calma esse link, vai encontrar a solução http://www.caiooliveira.com.br/wp-content/plugins/ajaxcomment/getcomments.php?id=73&s=0&n=10000 abraço Quote Link to comment Share on other sites More sharing options...
Question
MICHELI_MARTINS
Boa tarde pessoal.
Preciso pegar dados da tag retorno infprot, porém não estou conseguindo.
Segue o codigo:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.