# How to store xml values in data file before run collection test

**URL:** <https://community.postman.com/t/how-to-store-xml-values-in-data-file-before-run-collection-test/5952>\
**Category:** Help Hub\
**Created:** [June 18, 2019, 6:15am UTC](https://community.postman.com/t/how-to-store-xml-values-in-data-file-before-run-collection-test/5952 "2019-06-18T06:15:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton39](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Anton39](https://community.postman.com/u/Anton39)\
**Post date:** [June 18, 2019, 6:15am UTC](https://community.postman.com/t/how-to-store-xml-values-in-data-file-before-run-collection-test/5952/1 "2019-06-18T06:15:21Z")

</div>

Hi guys,

I have a data file, which I will include before running the collection test.  
The format of it is json,  
but I need value for xml, means, I would like to have a key and associate it with xml value.

Is there a way to do it?  
And how I can compare xml responses and extracts “rows” which I dont need?

Thanks

---

<div class="post-metadata">

**Author:** ![VincentD123](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vincentd123/32/1845_2.png) [@VincentD123](https://community.postman.com/u/VincentD123)\
**Post date:** [June 19, 2019, 7:04am UTC](https://community.postman.com/t/how-to-store-xml-values-in-data-file-before-run-collection-test/5952/2 "2019-06-19T07:04:57Z")

</div>

HI @Anton39,  
Not entirely sure what you’re attempting to do there. Could you please include sample data examples?

As far as working with xml responses, I have used `xml2Json(pm.response.text())` with Postman before, and that allowed me to work with the xml response nicely in javascript.
