No there is no api which will give the response in xml. you have to write a script to convert it to xml