class Nokogiri::CSS::Node

def to_xpath prefix = '//', visitor = XPathVisitor.new

Convert this CSS node to xpath with +prefix+ using +visitor+
##
def to_xpath prefix = '//', visitor = XPathVisitor.new
  self.preprocess!
  prefix + visitor.accept(self)
end