Skip navigation
Currently Being Moderated

Possible to combine multiple /process_data/

Jun 21, 2012 3:58 AM

Tags: #adobe #xml #livecycle #workbench #xpath

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/@sFormT emplate[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

 

 



 
Replies
  • Currently Being Moderated
    Jun 25, 2012 3:36 AM   in reply to tgsoft

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

    expression.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points