From: x1 Date: 2006-05-19T11:18:40+09:00 Subject: (DBI::Utils::XMLFormatter) Output results as a string? [xml.rb] require 'dbi' DBI::Utils::XMLFormatter.table(dbh.select_all("SELECT * FROM people")) [/xml.rb] When I run this from the dos prompt, I do get the appropriate output, IE: c:\scripts>ruby xml.rb 1 Wanda 62.5 2 Robert 75.0 c:\scripts> But from within the script, I'm unable to capture this output as a string, for example: irb> require 'dbi' irb> asdf = DBI::Utils::XMLFormatter.table(dbh.select_all("SELECT * FROM people")) irb> puts asdf => # [/xml_borked.rb] I'd like to be able to use puts to output the results of the DBI::Utils::XMLFormatter method. Any suggestions? Thank you