XPath and PHP: Parse from the nth instance of an element -


assuming have used xpath query 5th instance of bookelement in sample xml file looks this:

<books> <book id=1></book> <book id=2></book> <book id=3></book> ...etc </books> 

how can next 10 bookelements after 1 i've queried? i'm using php , xml dom.

following-sibling::book[position() <= 10] 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -