module Nokogiri::XML::Searchable
def xpath_impl(node, path, handler, ns, binds)
def xpath_impl(node, path, handler, ns, binds) context = XPathContext.new(node) context.register_namespaces(ns) context.register_variables(binds) path = path.gsub("xmlns:", " :") unless Nokogiri.uses_libxml? context.evaluate(path, handler) end