This is for the `to_xml` method, there is also a `to_json` method that uses camelized attribute keys (`userId`, `userEmail`), so I wasn't sure how to create those keys programmatically.