UiPath XML acitivites error

I want to ge tthe value 'Nombre".
Then what should be my xpath expresssion ?

I have used “string(/Receptor/@Nombre)” but it is giving empty value now

Yes, as the XML is defining XML namespaces which needs to get handled

We can access different instead to Execute XPath and handle namespaces as described here:

1 Like

can you provide me with the expression for my query ?

when further assistance is needed then please share with us the XML as Text file

also have a look here, when ignoring XML Namespace prefix part (not recommended)

string(//*[local-name()='Receptor'][1]/@Nombre)

wooooow…it worked…please provide me with the brief explanation

As mentioned:

with the local-name filter we ignore the namespace prefix

What is the significance of “[1]” in “string(//*[local-name()=‘Receptor’][1]/@Nombre)” ?

what would be the expression to get Bol ?

we asked for

unfortunately it was not answered or shared

with starting // we went relative as we dont know the structure detals and used the first Receptor element

We recommend to scope 1 topic = 1 case. So other researches can better find solutions for their similar case.

With:

the origin case looks solved.

So lets close the topic:
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

When new retrieval cases are to handle then open a new topic and share with us the XML as text file directly at the begin. Thanks for support

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.