xml = %{ }require 'rexml/document'doc = REXML::Document.new xmlp REXML::XPath.match(doc, '//fish[@size="small"]/@color')