Using XPath's with Predicates as Variables
Summary
When using an xpath with a predicate, it works directly, i.e. element[1], but using a variable does not error, but does not return the correct node. Always returns the first node.Content
I have an issue in OICS that I am unable to get working at the moment.
So say the following XPATH in an Assign
$GetNucNameUpdates/nsmpr2:GetNucNameUpdatesOutputCollection/nsmpr2:GetNucNameUpdatesOutput[2]/nsmpr2:NAME_CTR
This will work fine and return the correct node at position 2.
But if I now make the predicate a variable, it doesn't error, but only ever returns the 1st node.
$GetNucNameUpdates/nsmpr2:GetNucNameUpdatesOutputCollection/nsmpr2:GetNucNameUpdatesOutput[$LoopRecordCount]/nsmpr2:NAME_CTR
Tagged:
0