1

I try to get 5-10 values from XML

$xpath = $xml->xpath('//FILM');

Its posible set start position? example:

$xpath = $xml->xpath('//FILM[position() = 5 and position() = 10');
qaresh
  • 11
  • 2
  • Check this post: [enter link description here][1] [1]: http://stackoverflow.com/questions/3354987/what-is-the-xpath-to-select-a-range-of-nodes – ZiTAL Oct 16 '13 at 16:49
  • 2
    You're almost there: you missed a `]` and entered an impossible logic expression (position can't be 5 and 10 at *same time* =) . `//FILM[position() > 5 and position() < 10]` – Rubens Farias Oct 16 '13 at 17:00

0 Answers0