• + 1 comment

    require 'rexml/document' include REXMLto STDOUT xmlText = "" while line = gets() xmlText += line end doc = Document.new xmlText puts doc.elements.each("collection/movie/popularity/text()")

    selector query puts doc.elements.each("collection/movie/popularity/text()")