From: Paul Willis Date: 2007-03-23T02:02:52+09:00 Subject: Re: Pulling text from elements with REXML Gavin Kistner wrote: > att = XPath.first( doc, '//kid/@stuff' ) > I don't know what the XPath syntax is to select the value of an > attribute directly. I'd be interested to know if someone else knows it. Cheers, it was the kid/@stuff I needed... puts XPath.first( doc, '/root/kid/@stuff' ) #=> some-other-text Paul -- Posted via http://www.ruby-forum.com/.