This content has been marked as final. Show 4 replies
I have copy/pasted your XML into a file and created a process that reads the file from the file system, put the content into an XML variable and then use /process_data/xmlvar/data/formList/anyform/name to put the name in a string variable and I do get "form 2".
Are you sure you're xml variable is populated properly? Can you put a variable logger before your SetValue to double check the content of the variable?
Strewth! This one was nasty... but finally I made it.
My approach had two failures:
* xml nodes, maps, list have not 0-based but 1-based indexes
* the statement has wrong syntax (but this doens't result in an exception!!)
Ok, the correct statement look like this if your index is also a variable:
Thanks Jasmin for your great support!
Unfortunately I could solve my problem (almost) in the same minute as you were testing my problem.... sorry.
The xpath expression probably doesn't throw an exception because it's still a valid xpath expression, it just doesn't result in the data that you're expecting.
What would be very helpful in xpath expressions is a way of evaluating an xpath expression against the real data of a particular process instance. If you feel this would be useful, please log it as a feature request with Adobe.