cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic XPath

Former Member
0 Kudos

I would like to retrieve a value from one of 50 Locals. I want to identify the name of the Local dynamically and would prefer NOT using a large switch statement. Is there a way to build an XPATH statement dynamically based on the value of Transaction variables???

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Guys

agentry_src
Active Contributor
0 Kudos

Something like this:

GetDataFromLocal.Request{/#Transaction.LocalName#/Data} or

GetDataFromLocal.Request{/[LocalName=#Transaction.LocalName#]/Data}

Message was edited by: MA

Michael Appleby

Former Member
0 Kudos

Yes. Use #Transaction.<variablename># in your XPath (or a Local.<variablename> whatever the case may be)