From: Wes Gamble Date: 2008-03-13T06:30:26+09:00 Subject: Re: REXML formatting help due to changes from 1.8.4 to 1.8.6 (I see now there's been a lot of discussion about this ;]) SOLUTION: I changed the following method (where @document is a XML doc. created by REXML): def write() File.open("#{@file_path}", 'w') do |f| @document.write(f, 0) end end to: def write() formatter = REXML::Formatters::Default.new File.open("#{@file_path}", 'w') do |f| formatter.write(@document, f) end end after making sure to require 'rexml/formatters/default' and I'm back in business. I can imagine that a lot of people have run into this, and given that we're probably generating XML to communicate information to another system, I'm sure it has spawned some consternation. Backwards compatibility can be a tricky thing :). Hope this helps, Wes -- Posted via http://www.ruby-forum.com/.