Sonny Chee wrote: > Robert Klemme wrote: >> Not necessary. Documentation is your friend. >> >> http://www.germane-software.com/software/rexml/docs/tutorial.html#id2248510 >> >> robert > > Awesome, even better! Thanks Robert. I was actually reading that > documentation but somehow overlooked that section. Thanks again! Do you get that formatting to work? I get a NameError exception ("undefined local variable or method `transitive'") when I use a second parameter to doc.write. As in: require "rexml/document" doc = REXML::Document.new '<!DOCTYPE foo><myroot />' doc.root.add_element("other") doc.write( $stdout, 0 ) Best regards, Jari Williamsson