Any way to convert from hash to XML using builder?

E

Ehud Rosenberg

Hi all,
Am I missing an obvious way to transform a hash into an XML builder
object?
I would like the key to be the tag, and value be the content. attributes
on a tag are something I don't really know how to represent - but
perhaps someone has already thought of that?

Thanks!
 
M

Mark Thomas

Hi all,
Am I missing an obvious way to transform a hash into an XML builder
object?
I would like the key to be the tag, and value be the content. attributes
on a tag are something I don't really know how to represent - but
perhaps someone has already thought of that?

Yep. http://xml-simple.rubyforge.org/

-- Mark.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,041
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top