0

Possible Duplicate:
Get Nth child of a node using xpath

How can I access Nth node from the following set.
XPath = /ProcessData/*[starts-with(name(), 'INV')]

enter image description here

Community
  • 1
  • 1
Azeem
  • 2,904
  • 18
  • 54
  • 89

1 Answers1

4

Below expression will help

(/ProcessData/*[starts-with(name(), 'INV')])[5]

Here 5 can be replaced with the desired value to get the nth node from the selected(filtered) nodes.

Jayy
  • 2,368
  • 4
  • 24
  • 35