XPath and PHP: Parse from the nth instance of an element -
assuming have used xpath query 5th instance of book
element 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 book
elements after 1 i've queried? i'm using php , xml dom.
following-sibling::book[position() <= 10]
Comments
Post a Comment