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/.