From: slumos@...
Date: 2001-10-19T07:44:47+09:00
Subject: [ruby-talk:22723] REXML: problem with Attributes.[]=
I'm not sure whether I'm confused. Shouldn't the output of the
following be 'blah'?
require 'rexml/document'
xml = 'blah'
doc = REXML::Document.new xml
doc.elements.each do |a|
a.attributes['att'] << 'B'
a.attributes['att'] = 'C'
end
doc.write $stdout # -> blah
Steve