U:RDoc::AnyMethod[iI" write:EFI"REXML::Document#write;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JWrite the XML tree out, optionally with indent. This writes out the ;TI"Lentire XML document, including XML declarations, doctype declarations, ;TI"4and processing instructions (if any are given).;To:RDoc::Markup::BlankLineo; ; [ I"KA controversial point is whether Document should always write the XML ;TI"Ldeclaration () whether or not one is given by the ;TI"Iuser (or source document). REXML does not write one if one was not ;TI"Kspecified, because it adds unnecessary bandwidth to applications such ;TI"as XML-RPC.;T@o; ; [I"CAccept Nth argument style and options Hash style as argument. ;TI"AThe recommended style is options Hash style for one or more ;TI"arguments case.;T@o; ; [I"_Examples_;To:RDoc::Markup::Verbatim; [ I"'Document.new("").write ;TI" ;TI"output = "" ;TI"/Document.new("").write(output) ;TI" ;TI"output = "" ;TI"HDocument.new("").write(:output => output, :indent => 2) ;T: @format0o; ; [I"MSee also the classes in the rexml/formatters package for the proper way ;TI"4to change the default formatting of XML output.;T@o; ; [I"_Examples_;T@o; ; [I"output = "" ;TI"tr = Transitive.new ;TI"3tr.write(Document.new(""), output) ;T; 0o:RDoc::Markup::List: @type: NOTE: @items[ o:RDoc::Markup::ListItem: @label[I" output;T; [o; ; [I"Doutput an object which supports '<< string'; this is where the ;TI"document will be written.;To;;[I" indent;T; [o; ; [ I"CAn integer. If -1, no indenting will be used; otherwise, the ;TI"Kindentation will be twice this number of spaces, and children will be ;TI"Jindented an additional amount. For a value of 3, every item will be ;TI"Eindented 3 more levels, or 6 more spaces (2 * 3). Defaults to -1;To;;[I"transitive;T; [o; ; [ I"GIf transitive is true and indent is >= 0, then the output will be ;TI"Lpretty-printed in such a way that the added whitespace does not affect ;TI"Jthe absolute *value* of the document -- that is, it leaves the value ;TI"8and number of Text nodes in the document unchanged.;To;;[I" ie_hack;T; [o; ; [I"FThis hack inserts a space before the /> on empty tags to address ;TI":a limitation of Internet Explorer. Defaults to false;To;;[I" encoding;T; [o; ; [I"KEncoding name as String. Change output encoding to specified encoding ;TI"-instead of encoding in XML declaration. ;TI"CDefaults to nil. It means encoding in XML declaration is used.;T: @fileI"lib/rexml/document.rb;T:0@omit_headings_from_table_of_contents_below0I"Ädoc.write(output=$stdout, indent=-1, transtive=false, ie_hack=false, encoding=nil) doc.write(options={:output => $stdout, :indent => -1, :transtive => false, :ie_hack => false, :encoding => nil}) ;T0[I"(*arguments);T@dFI" Document;TcRDoc::NormalClass00