The API only returns data in JSON format - you must perform any conversion yourself.

Here is the source code for a PHP app I wrote a while back that converts the  JSON returned by the API to XML:

> http://quickmediasolutions.com/pastebin/1/stack2xml-source-code