You are viewing limited content. For full access, please sign in.

Question

Question

Making an expression to read xml through Workflow

asked on September 17, 2014

 Hi there,

 

I am trying to build an workflow that reads xml archived. But I am having a hard time building the expression of read xml to extract the information.

Does anyone know a way to pick the node <cUF> from this xml structure?

 

<?xml version="1.0" encoding="ISO-8859-1" ?>
<nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.portalfiscal.inf.br/nfe procNFe_v2.00.xsd" versao="2.00">
<ide>
<cUF>53</cUF>
<teste>teste</teste>
</ide>
</nfeProc>

 

If i take off the node <nfeProc>, I can read the information with //ide//cUF, but i need to have this info in the xml.

 

Thanks for the info!

 

regards,

vitor

 

0 0

Answer

SELECTED ANSWER
replied on September 17, 2014

did you try 

//*[name() = 'cUF']

 

1 0
replied on September 17, 2014

Hi Kenneth!

I did not!, Thanks a lot! it worked fine!

 

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.