From: Charles Roper Date: 2009-09-17T02:37:22+09:00 Subject: Re: Formatting REXML Robert Klemme wrote: > 2009/9/15 Charles Roper : > Bte, your XML is invalid. The opening tag is missing. Yeah, sorry, I didn't give terribly clear background infomation. That XML I posted was just a snippet from a full XML document. Example: http://pastie.org/619068 I didn't paste the whole thing because I didn't want to clutter the post too much. Sorry for not explaining that more clearly. :) > irb(main):146:0> puts f.write(d.root,"") Awesome, this gave me the clue I needed. I was doing this: puts out.write(tmtheme,"") Whereas I needed to do this: puts out.write(tmtheme.root,"") Bingo! Thanks for your help Robert, it is very much appreciated. Cheers, Charles -- Posted via http://www.ruby-forum.com/.