#53: slicing rexml collections
Solved!
REXML is dumb and doesn't implement normal Ruby enumerable slicing with ranges.
pass an xpath to each
- kueda on June 11, 2009, 10:39 PM UTC
*shudder* but it works:
items.elements.each('venue[position()<100]')