From: Phrogz Date: 2007-12-11T12:30:49+09:00 Subject: Re: REXml help - Insert newlines into large xml file On Dec 10, 6:49 pm, Sean Nakasone wrote: > Hello, I have a large xml file that does not have any newlines in it. Can > someone please provide some code to use REXML to simply read in an xml, > insert newlines after the xml sections or elements, then spit it out to > stdout. This way I'd at least be able to open the xml file in an editor > so I can read what kind of format it has. I don't know anything about > REXML so it needs to be a somewhat complete script. thank you. For more information on REXML, see the official tutorial. It covers this question directly and plainly, as well as a whole host of others. http://www.germane-software.com/software/rexml/docs/tutorial.html