# Re: (DBI::Utils::XMLFormatter) Output results as a string?

**URL:** <https://www.ruby-forum.com/t/re-dbi-xmlformatter-output-results-as-a-string/61991>\
**Category:** Ruby\
**Created:** [May 30, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/re-dbi-xmlformatter-output-results-as-a-string/61991 "2006-05-30T16:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 30, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/re-dbi-xmlformatter-output-results-as-a-string/61991/1 "2006-05-30T16:51:48Z")

</div>

> 

Try this:

DBI::Utils::XMLFormatter.table(  
dbh.select\_all(“select \* from people”), ‘rows’, ‘row’, asdf)  
)

The actual definition looks like this:

XMLFormatter.table(rows, roottag = “rows”, rowtag = “row”,  
output=STDOUT)

HTH,

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [June 9, 2006, 2:02am UTC](https://www.ruby-forum.com/t/re-dbi-xmlformatter-output-results-as-a-string/61991/2 "2006-06-09T02:02:01Z")

</div>

Worked like a champ. Thank you!!

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [June 7, 2006, 6:01am UTC](https://www.ruby-forum.com/t/re-dbi-xmlformatter-output-results-as-a-string/61991/3 "2006-06-07T06:01:59Z")

</div>

I’ll check it out tomorrow and let you know.

Thanks again Dan and sorry for the late response 🙂
