tags:

views:

29

answers:

2

Hi,

how can i get Last added 5 item's node from my XML file with Xpath ?

this is not what i want .. its gives First 5 item , i wanna get last 5 item

XPath="/newsSection/news[position()<=5]

thanx for ur helps.

+1  A: 

at a guess which is probably wrong

XPath="/newsSection/news[position()>last()-5]
Paul Creasey
ah yes we r thinking same thing :)
Ibrahim AKGUN
A: 

i have fixed it , thanx everyone.

Ibrahim AKGUN