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