Hi,
Maybe I’m missing something, but I’m trying to store a REXML Document
to a string, loading it back later. Storing it again. etc…
I’ve noticed the following problem:
script/console session:
xml = REXML::Document.new("<root value=" />") => … </>
xml.to_s => “<root value=” />
xml.root.attributes[‘value’] = ‘<’
xml.root.text = ‘>’
xml.to_s => “>” # fine by me, no problem…
xml2 = REXML::Document.new( xml.to_s )
xml2.to_s => ">
As you can see the root.text node is loaded back correctly…
But the attribute root.attributes[‘value’] is synchronized
incorrectly…
REXML version:
DATE = “2006/335”
VERSION = “3.1.6”
Is this a bug?!?
Does somebody have a solution for this?!?
Thanks in advance!