From: Pierre Pierre Date: 2009-03-19T13:08:53+09:00 Subject: Re: REXML get specific element Ha, actually, I hadn't worked with XPath before, so I didn't really know what it was about. It's actually pretty cool, you can access any elements directly. for instance: the_lang = 'ruby' doc.elements["//language[@lang='#{the_lang}']"] for an xml which would have a language tag inside the programmer one with lang as attributes. Learning and enjoying :-) -- Posted via http://www.ruby-forum.com/.