From: Phlip Date: 2009-03-19T15:37:24+09:00 Subject: Re: REXML get specific element 7stud -- wrote: >> target = XPath.match(doc, "//programmer[text() = $name]", :name => >> $john) >> > > I don't know what you are trying to do there. What is $john? It is a typo. > This > doesn't work for me: > > target = XPath.match(doc, "//programmer[text() = $name]", :name => > $input_name) Take the $ off. Sorry, but $ is also valid Ruby, meaning "a global variable, yet different from 'input_name'".