Im playing around with Recurly, the app enables real time push notifications.
My question is what is best pratice and how do I parse the incomming XML, the XML look like this.
<?xml version="1.0" encoding="UTF-8"?>
<new_account_notification>
<account>
<account_code>verena@test.com</account_code>
<username></username>
<email>verena@test.com</email>
<first_name>Verena</first_name>
<last_name>Test</last_name>
<company_name></company_name>
</account>
</new_account_notification>
Thanks…
You can convert the XML to a hash with the Hash.from_xml method, and then work with the resulting hash.