Tried to write a simple test program in Ruby, but got an error. I discovered that there are improper variable names in write method: def write( output=$stdout, indent=-1, trans=false, ie_hack=false ) but inside method: if transitive Reproducible: Always Steps to Reproduce: 1. doc = REXML::Document.new(somexml) doc.write($stdout, 4, true) 2. see the error message. Actual Results: /usr/lib/ruby/1.8/rexml/document.rb:186:in `write': undefined local variable or method `transitive' for <UNDEFINED> ... </>:REXML::Document (NameError) from ./textxml.rb:14 Expected Results: As described in http://ruby-doc.org/stdlib/libdoc/rexml/rdoc/classes/REXML/Document.html#M002925
see http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v1_8_6_110/lib/rexml/document.rb?r1=11752&r2=12852
See http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/document.rb?r1=13597&r2=13686 for how to fix this.
*** This bug has been marked as a duplicate of bug 195505 ***