From: Pierre Pat Date: 2009-03-19T11:53:03+09:00 Subject: Re: REXML get specific element Matthias Reitinger wrote: > target = XPath.match(doc, "//programmer[text()=$name]", {}, "name" => > input_name) > p target Since I'm now digging one level deeper in my xml and again trying to locate a specific element, I thought I'd try XPath, which should be easier. But that example you gave is to locate an element knowing the text value, then showing the attribute. I'm trying to do the opposite, looking for an element depending on its attribute's value. I looked in XPath and the Functions module it's using, I can't find any method to do that :o Is there any way to do that? Regards -- Posted via http://www.ruby-forum.com/.