From: Gavin Kistner Date: 2005-09-15T22:35:21+09:00 Subject: Re: REXML feature request: XPath.match.text & better text documentation On Sep 15, 2005, at 3:56 AM, Dan Kohn wrote: > doc = Document.new string.gsub!(/\s+| /," ") One aside - you might like to know about: doc = Document.new( string, :ignore_whitespace_nodes => :all )