From: Mert Date: 2012-08-28T20:41:37+09:00 Subject: Re: nokogiri xpath query with text containing "&" > That's not true. The issue is with your understanding (or lack > thereof) of XML Entities. See below. > Thank you very for your encouragement. I hope you have an understanding of everything. > We would need to see your input but I guess it's something like this: #!/usr/bin/env ruby require 'nokogiri' someXML = < value&value2 HERE file_xml = Nokogiri::XML someXML print file_xml.xpath("//value[text()='value&value2']").text.to_s -- Posted via http://www.ruby-forum.com/.