From: 7stud -- Date: 2009-03-19T10:37:29+09:00 Subject: Re: REXML get specific element Matthias Reitinger wrote: > So this does the > trick: > > > target = XPath.match(doc, "//programmer[text()=$name]", {}, "name" => > input_name) Nice. I downloaded the REXML docs and took a look around. A question: how in the hell would anyone know to use a $ variable in there, and that a hash specified as the 4th argument would somehow match a value to that variable, when all the docs say is: match(element, path=nil, namespaces=nil, variables={}) -- Posted via http://www.ruby-forum.com/.