# File lib/rir/document.rb, line 135
    def self.search_wikipedia_titles(name)
      raise ArgumentError, "Bad encoding", name unless name.isutf8

      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