# File lib/rir/document.rb, line 125 def self.search_wikipedia_titles(name) res = REXML::Document.new(Net::HTTP.get(URI.parse("http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=#{URI.escape name}&format=xml")).toutf8).elements['api/query/search'] res.collect { |e| e.attributes['title'] } unless res.nil? end