From: Mark Hubbart Date: 2004-03-03T06:45:52+09:00 Subject: Re: REXML set default namespace On Mar 2, 2004, at 1:04 PM, Hans Fugal wrote: > str = ' href="http://google.com/">Google' > > doc = Document.new(str) > > (desired incantation) > > doc.to_s desired output: > href="http://google.com/">Google Does this do what you want? doc = Document.new(str) doc[0].add_attributes("xmlns"=>"http://www.w3.org/1999/xhtml") doc.to_s #=> "Google" --Mark