Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top