Hi,

The script to parse string with REXML::Document,

   require 'rexml/document'
   doc = REXML::Document.new("<foo bar=\"foo'bar\"></foo>")
   doc.write(STDOUT)

returns:

  <foo bar2='foo' bar='foo'/>

but it should return:

 <foo bar2='foo"bar' bar="foo'bar"/>


Is it a bug?


Regards,

TAKAHASHI Masayoshi (maki / inac.co.jp)