//node[5-10]

T

Timo Nentwig

Hi!

//node may match 20 nodes but I'm only interested in node 5 to node 10.
Is there any syntax to match only those nodes?

Timo
 
R

Richard Tobin

Timo Nentwig said:
//node may match 20 nodes but I'm only interested in node 5 to node 10.
Is there any syntax to match only those nodes?

(//node)[position() >= 5 and position() <= 10]

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top