From: Mark Hubbart Date: 2005-10-27T16:13:09+09:00 Subject: Re: REXML::Document.write( my_file, 0, true, false ) On 10/26/05, Shea Martin wrote:> Mark Hubbart wrote:>> > On 10/25/05, Shea Martin wrote:> >> I am reading in simple xml document, adding an element and writing it out> ???? What does "????" mean? Did your reader truncate the message? Or did Imisunderstand your original question? My response was: > perhaps -> REXML::Document.write( my_file, 0 )> or even -> REXML::Document.write( my_file ) From the rexml docs: write( output=$stdout, indent_level=-1, transitive=false, ie_hack=false )[...]transitive: If transitive is true and indent is >= 0, then the outputwill be pretty-printed in such a way that the added whitespace doesnot affect the absolute value of the document � that is, it leaves thevalue and number of Text nodes in the document unchanged. I think it is the "transitive" argument that is causing the unusualformatting. Regardless, removing the extra arguments makes it printmore prettily. cheers,Mark