On Dec 10, 8:35 pm, Michael Fellinger <m.fellin... / gmail.com> wrote: > On Dec 11, 2007 10:54 AM, Sean Nakasone <seannakas... / yahoo.com> 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. > > Step 1) Install tidy > Step 2) tidy -i yourfile.xml > Step 3) tidy --help > > REXML is very bad for handling such things. For the record, would you care to clarify and justify that statement?