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

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -