#53: slicing rexml collections

Solved!
REXML is dumb and doesn't implement normal Ruby enumerable slicing with ranges.

pass an xpath to each

1
*shudder* but it works:

items.elements.each('venue[position()<100]')

Think you've got a better solution? Help 148c663fd665c53518538e093ce3c2ab_small kueda out by posting your solution

http://www.w3schools.com/XPath/xpath_syntax.asp - found by 148c663fd665c53518538e093ce3c2ab_small kueda on June 11, 2009, 10:39 PM UTC