From: John Lam Date: 2005-05-19T23:38:06+09:00 Subject: Re: Idiomatic way for collecting elements using REXML? Thanks - that did the trick! -John http://www.iunknown.com > require 'rexml/document' > doc = REXML::Document.new( "123") > p doc.elements.to_a( '/a/b/c' ).collect { |e| e.text }