# Working with XML in Postman Scripts

**URL:** <https://community.postman.com/t/working-with-xml-in-postman-scripts/8649>\
**Category:** Help Hub\
**Tags:** soap, xml-response, xml-parsing, saml\
**Created:** [October 29, 2019, 7:27pm UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649 "2019-10-29T19:27:00Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [October 29, 2019, 7:27pm UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649/1 "2019-10-29T19:27:00Z")

</div>

Hi There!

I had trouble for awhile working with XML in Postman, in particular with scripting out xml calls and parsing them. The company I work at has some legacy web applications (SOAP and SAML), and I was done using the tooling they had, as it was clunky and difficult to use. After much research and testing, I was able to find the Cheerio.js library in postman, and could do all the native xml manipulation I needed, especially making a SAML request to get an Assertion, and use that against a SOAP service. I made a video on it and created some test scripts as resources. Take a look at the video description.

I hope this helps anyone looking for native xml use in postman, especially those who don’t work with JSON based services!

[![](https://img.youtube.com/vi/mSO5-O3tBgA/maxresdefault.jpg "How to modify XML in Postman scripts") ](https://www.youtube.com/watch?v=mSO5-O3tBgA)

Regards,  
Orest

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [October 31, 2019, 10:57am UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649/2 "2019-10-31T10:57:08Z")

</div>

Great tutorial video @odanylewycz, thanks for sharing! I wish I had that when I was also dealing with some legacy webapps a while back 😄

---

<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:** [October 31, 2019, 11:49am UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649/3 "2019-10-31T11:49:18Z")

</div>

@arlem Thank you very much! I only wish I could’ve gotten it out sooner when you were dealing with those web apps. But hey, now you know for next time 😄

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 2:46pm UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649/4 "2024-12-12T14:46:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
