I'm using RABL to format the output of a Rails API I'm creating.
Is there anyway to customize the shape of the XML being produced? For instance, I need to produce an output that uses XML attributes, instead of elements. In other words, this...
<auth status="FAILED" errorcode="UNKNOWN_LOGIN" errormessage=”Error Message” />
Instead of this...
<auth>
<status type="symbol">failed</status>
<errorcode>UNKNOWN_LOGIN</errorcode>
<errormessage>Invalid credentials.</errormessage>
</auth>
Any help will be highly appreciated?