From: Paul Willis Date: 2007-03-23T01:44:58+09:00 Subject: Re: Pulling text from elements with REXML > require 'rexml/document' > doc = REXML::Document.new("hello world") > p REXML::XPath.first( doc, '/root/kid/text()' ) > #=> "hello world" Thanks for that, I'm now using REXML::XPath with a combination of .first and .match to pull the element text out. One more thing, given an XML document... hello world What would be the path to the attribute 'stuff' and return 'some-other-text'? Paul -- Posted via http://www.ruby-forum.com/.