From: Paul Willis Date: 2007-03-19T20:38:21+09:00 Subject: Pulling text from elements with REXML Hi I am using REXML to pull text from a NewsML document. require 'rexml/document' include REXML file = File.new("Main_News.xml") doc = Document.new(file) root = doc.root puts root.elements["NewsItem/NewsComponent/NewsComponent[1]/NewsComponent/ContentItem/DataContent/nitf/body/body.head/hedline/hl1"] Gives me... Blueprint to cut emissions unveiled Is there an easy way (ie something in REXML) to pull just the text without the containers and . Paul -- Posted via http://www.ruby-forum.com/.