on 08-07-2014 5:27 PM
Hello All,
Is there a way to get a range of nodes in SAP MII XML using xpath ? For example I have a query with 1000 rows and I want to take a batch of 2 rows and process them using a separate branch until I reach the end of the XML.
I am using a For Next Loop for it & I am using the following XPath based on what I found online. Its still not working. ?
Data.Results{/Rowsets/Rowset//Row[position() >= For_Next_Loop_0.CurrentItem and position() < (For_Next_Loop_0.CurrentItem + 2)]}
Any ideas ?
Thanks,
Kiran
I think you need to reference the current item number dynamically by surrounding the parameter with pound signs: #For_Next_Loop_0.CurrentItem#
To do what I think you are trying to do I would probably use the for next with an increment of 2 and then get the two rows with something like Data.Results{/Rowsets/Rowset/Row[#For_Next_Loop_0.CurrentItem#]} to get the first and Data.Results{/Rowsets/Rowset/Row[#For_Next_Loop_0.CurrentItem#+1]} to get the second.
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.