xml = %{ }require 'rexml/document'doc = REXML::Document.new xmlp red_fish = doc.children[0]p red_fish.xpathp REXML::XPath.first(doc, red_fish.xpath)