How to get the absolute XPath to a point in an iteration

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
If I do SelectNodes("Root/productSalesGoals/Rows/Row[Month = Dec]/Train/Goal") and I have iterated through say 4 of the 20 nodes returned, is there a way to get back an XPath string that will give me the node I am on?
For this case it could be Root/productSalesGoals/Rows/Row[12]/Train/Goal[2] and being able to get that absolute XPath back for any given iteration of the nodes returned would help us a lot (for when we then need to take that and add some additional selects
to a given iteration).
??? - thanks - dave <hr class="sig Very funny video - http://blogs.windwardreports.com/davidt/2010/02/reporting-as-a-metaphor.html
Whats your Metaphor?

View the full article
 
Back
Top