> Should REXML convert "'" and '"' into ' and "?
> At least, the behavior:
> 
>   foo_str = ""
>   foo = REXML::Element.new("foo")
>   foo.attributes["bar"] = "aaa'bbb\"ccc"
>   foo.write(foo_str)
>   p foo_str         #=> "<foo bar='aaa'bbb\"ccc'/>"
> 
> is odd.

Worse, it's not XML.  I would vote for automatic encoding of the quote characters to help avoid this type of error.


James

> 
> 
> Regards,
> 
> TAKAHASHI Masayoshi (maki / inac.co.jp)
>