Please provide response types in JSON
Please considering providing response types in JSON as JSON is much easier to process in PHP. Please consider doing this but letting us append an extension to the URL, i.e.
https://api.xero.com/api.xro/2.0/Accounts.json
https://api.xero.com/api.xro/2.0/Accounts.xml
https://api.xero.com/api.xro/2.0/Accounts (defaults to xml)
This approach would let you support other response types too.

-
Try specifying "Accept: application/json" in any GET http request. The response will be serialized as JSON rather than XML. This is not documented, but should work fine for simple response messages.
D4
-
Warren Strong commented
<3 JSON :)