# Creating xml file

**URL:** <https://community.postman.com/t/creating-xml-file/24078>\
**Category:** Help Hub\
**Created:** [May 25, 2021, 12:48pm UTC](https://community.postman.com/t/creating-xml-file/24078 "2021-05-25T12:48:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![security-technologis](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@security-technologis](https://community.postman.com/u/security-technologis)\
**Post date:** [May 25, 2021, 12:48pm UTC](https://community.postman.com/t/creating-xml-file/24078/1 "2021-05-25T12:48:24Z")

</div>

Hello, the API which im testing need a xml file as attachment. Is there any way to create a xml file with variables values from Postman ?

Thanks.

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [May 25, 2021, 1:38pm UTC](https://community.postman.com/t/creating-xml-file/24078/2 "2021-05-25T13:38:46Z")

</div>

Hey @security-technologis ,  
Welcome to the community! 👋  
There is a way to add files as part of the payload using form-data - [https://learning.postman.com/docs/sending-requests/requests/#form-data](https://learning.postman.com/docs/sending-requests/requests/#form-data)

Would this resolve the issue? what’s the Content-Type that your API accepts?

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [May 26, 2021, 1:56am UTC](https://community.postman.com/t/creating-xml-file/24078/3 "2021-05-26T01:56:53Z")

</div>

Hello @security-technologis 👋

Could you please provide more context here?

So you are trying to generate a xml file based on some values with the request response and the after building the xml goes as input for another request?

additionally to the resource which @meenakshi.dhanani provided, can you please refer if [this post](https://community.postman.com/t/how-to-create-dynamic-request-body-in-json-and-xml/19730) helps 😊

---

<div class="post-metadata">

**Author:** ![security-technologis](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@security-technologis](https://community.postman.com/u/security-technologis)\
**Post date:** [May 26, 2021, 7:03am UTC](https://community.postman.com/t/creating-xml-file/24078/4 "2021-05-26T07:03:15Z")

</div>

Thanks for your reply.

I need user to modify variables values from postman, then postman should create a xml file with this new values. Then, request the API with the new xml as attachment. The XML can’t be in the body request, need to be as attachment. I dont want user to modify the xml file directly.
