Any way to convert from hash to XML using builder?

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!

···

--
Posted via http://www.ruby-forum.com/.

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

-- Mark.

···

On Oct 16, 10:52 am, Ehud Rosenberg <ehud...@gmail.com> wrote:

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?

Mark Thomas wrote:

···

On Oct 16, 10:52�am, Ehud Rosenberg <ehud...@gmail.com> wrote:

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.

Thanks, I'll check it out.
--
Posted via http://www.ruby-forum.com/\.