Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Possible to combine multiple /process_data/

Avatar

Level 4

Hi,

I cannot seem to find a way around this challenge. No documentation to find so hope one of your clever heads have solved it. bring it

I want to create a combined Xpath expression with multiple variables. Right now I have to hardcode a value I have in a varible, to make it work - and it is that I want to solve. The expression will grab a xml record in a larger xml structure.

works:

/process_data/xmlRecordsFormData/formDataRecords/LC_KOMA001[number(//@iCnt)]

But:

The value='LC_KOMA001' is a changing formTemplate-name, that I have allready stored in a variable= sFormTemplate

So want to do something like:

/process_data/xmlRecordsFormData/formDataRecords//process_data/@sFormTemplate[number(/process_data/@iCnt)]

I do not know how to create the right syntax for this to work. I really need your help.

Thanks in advance

/Thomas

1 Reply

Avatar

Level 10

You can use script activity and write pojo code to evaluate your XPATH

expression.