Hi,

At Sat, 1 Sep 2007 05:18:48 +0900,
Keith Fahlgren wrote in [ruby-talk:266990]:
> I'd suggest using a bit more XPath, both text() and a each {} to
> iterate through the text nodes (which are distinct):
> 
> $ irb -r rexml/document --prompt xmp
> a = REXML::Document.new("<Site>123 street<br/>amstown<br/>amserland</Site>")
> # => <UNDEFINED> ... </>
> REXML::XPath.first(a, '//Site').text
> # => "123 street"

Seems like that just REXML::XPath.first(a, '//Site').to_s
returns the whole content.

-- 
Nobu Nakada