handling of inline xml format and xml format 

json response of output