# Data in XML in postman

**URL:** <https://community.postman.com/t/data-in-xml-in-postman/9336>\
**Category:** Help Hub\
**Tags:** newman-project, variables\
**Created:** [November 29, 2019, 8:07am UTC](https://community.postman.com/t/data-in-xml-in-postman/9336 "2019-11-29T08:07:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakhtawarashiqhussai](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bakhtawarashiqhussai](https://community.postman.com/u/bakhtawarashiqhussai)\
**Post date:** [November 29, 2019, 8:07am UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/1 "2019-11-29T08:07:20Z")

</div>

how i get data in XML format

i tried this

[https://people.zoho.com/people/api/attendance/getUserReport?authtoken=removed&sdate=01-Jan-2019](https://people.zoho.com/people/api/attendance/getUserReport?authtoken=removed&sdate=01-Jan-2019) &edate=31-Oct-2019&empId=51

but unable to get data in xml

---

<div class="post-metadata">

**Author:** ![odanylewycz](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/odanylewycz/32/3240_2.png) [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Post date:** [December 2, 2019, 3:38pm UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/2 "2019-12-02T15:38:13Z")

</div>

Hi @bakhtawarashiqhussai,

I am not sure how we can help with what you are experiencing, because this looks like a server side issue.

When I follow the request, I do get json back. Could you try adding a header to your request, using

`Accept: application/xml`

That should tell the server that you want to get back XML, as opposed to JSON, which looks like the default. However, this will only work if the server supports an xml response.

Additionally, on a security side, be sure to change your authtoken once you are done troubleshooting, especially so as to not expose any potentially sensitive information.

Hope this helps!

— Orest

---

<div class="post-metadata">

**Author:** ![bakhtawarashiqhussai](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bakhtawarashiqhussai](https://community.postman.com/u/bakhtawarashiqhussai)\
**Post date:** [December 3, 2019, 4:56am UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/3 "2019-12-03T04:56:29Z")

</div>

already this is mentioned

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/c/c4df0be5947759343f1cec3c82f6747a9d350118.png)

---

<div class="post-metadata">

**Author:** ![amit](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/amit/32/2056_2.png) [@amit](https://community.postman.com/u/amit)\
**Post date:** [December 3, 2019, 5:31am UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/4 "2019-12-03T05:31:02Z")

</div>

@bakhtawarashiqhussai a quick look at the Zoho API indicates that they may be be deciding the output format using input data format.  
Attendance API doesn’t mention about XML I/O - [https://www.zoho.com/people/help/api/attendance-api.html](https://www.zoho.com/people/help/api/attendance-api.html)  
But a few other endpoints like this one shows how to pass XML Data as input [https://www.zoho.com/people/help/api/leave-api.html](https://www.zoho.com/people/help/api/leave-api.html) and the response is in XML.

For more details reach out to Zoho as they can provide more details and confirm this behaviour: [https://help.zoho.com/portal/home](https://help.zoho.com/portal/home) ( [https://help.zoho.com/portal/newticket](https://help.zoho.com/portal/newticket) )

---

<div class="post-metadata">

**Author:** ![odanylewycz](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/odanylewycz/32/3240_2.png) [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Post date:** [December 6, 2019, 2:12pm UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/5 "2019-12-06T14:12:21Z")

</div>

I would agree with @amit , their documentation or support would be your best bet.

Additionally, Content-Type generally defines the data format of the request body, and not what data format to return in the response. The Accept header tells the server what data format you want to receive the response body to be, and will (should) do so if supported by the server. However, this may not be always the case, as it depends on how the developers created the API.

Best of luck.

— Orest

---

<div class="post-metadata">

**Author:** ![bakhtawarashiqhussai](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bakhtawarashiqhussai](https://community.postman.com/u/bakhtawarashiqhussai)\
**Post date:** [December 8, 2019, 5:18am UTC](https://community.postman.com/t/data-in-xml-in-postman/9336/6 "2019-12-08T05:18:16Z")

</div>

yes when i try leaves API then works fine but when i try attendance API this shows an error
