class Nokogiri::XML::NodeSet

def at path, ns = {}

first Node. Otherwise, index in to the array with +path+.
If path is a string, search this document for +path+ returning the
##
def at path, ns = {}
  return self[path] if path.is_a?(Numeric)
  search(path, ns).first
end