# File src/rexml/document.rb, line 156
                def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
                        output = Output.new( output, xml_decl.encoding ) if xml_decl.encoding != "UTF-8"
                        @children.each { |node|
                                node.write( output, indent, transitive, ie_hack )
                                output << "\n" unless indent<0 or node == @children[-1]
                        }
                end