module Nokogiri::XML::Searchable
def xpath_internal(node, paths, handler, ns, binds)
def xpath_internal(node, paths, handler, ns, binds) document = node.document return NodeSet.new(document) unless document if paths.length == 1 return xpath_impl(node, paths.first, handler, ns, binds) end NodeSet.new(document) do |combined| paths.each do |path| xpath_impl(node, path, handler, ns, binds).each { |set| combined << set } end end end