TAKAHASHI Masayoshi wrote:

> 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'/>


really? where does the '2' come from?



-- 
Tobias Reif
http://www.pinkjuice.com/myDigitalProfile.xhtml

go_to('www.ruby-lang.org').get(ruby).play.create.have_fun
http://www.pinkjuice.com/ruby/