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