Here is the specific XML I ultimately need:
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<email>[email protected]</email>
<first_name>Joe</first_name>
<last_name>Blow</last_name>
</customer>
But say I have a controller (Ruby on Rails) that is sending the data to a method. I'd prefer to send it as a hash, like so:
:first_name => 'Joe',
:last_name => 'Blow',
:email => '[email protected]'
So, how can I convert the hash to that XML format?