From: Mert Date: 2012-08-28T20:04:18+09:00 Subject: nokogiri xpath query with text containing "&" Hi all, I am trying to run some xpath queries on a XML file. But it seems nokogiri can not handle texts containing & values. here is an example, second line prints nothing. if i change & to something else in both xml and xpath expression, i get the values i expect. How can i query xpath expressions with XML excapes. file_xml = Nokogiri::XML File.open(file_configurable) print file_xml.xpath("//Match[text()='value1&value2']/../Value").text.to_s thanks everyone. -- Posted via http://www.ruby-forum.com/.