From: James Britt Date: 2005-10-27T23:47:44+09:00 Subject: Re: REXML::Document.write( my_file, 0, true, false ) Mark Hubbart wrote: ... > 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 output > will be pretty-printed in such a way that the added whitespace does > not affect the absolute value of the document � that is, it leaves the > value and number of Text nodes in the document unchanged. > > I think it is the "transitive" argument that is causing the unusual > formatting. Regardless, removing the extra arguments makes it print > more prettily. But at the expense of adding new white space to your document. is not the same document as because the latter has white space content (after , after , and before ) not found in the first version. James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys