You are viewing a single comment's thread. Return to all comments →
ans is
doc.elements.each("collection/movie[position() mod 2 = 1]") do |movie| puts movie.attributes["title"] end
Seems like cookies are disabled on this browser, please enable them to open this website
Querying XML Datastores with XPath - 11
You are viewing a single comment's thread. Return to all comments →
ans is
doc.elements.each("collection/movie[position() mod 2 = 1]") do |movie| puts movie.attributes["title"] end