From: 7stud -- Date: 2012-12-16T19:37:25+09:00 Subject: Re: print - and strip text between tags using Nokogiri There should be a way to match the text of the first comment, but I couldn't get this to work: comment()[text()='body="start"'] -- Posted via http://www.ruby-forum.com/.