# Handling XML response with or without namespace in Postman

**URL:** <https://community.postman.com/t/handling-xml-response-with-or-without-namespace-in-postman/21282>\
**Category:** Help Hub\
**Created:** [March 11, 2021, 5:28pm UTC](https://community.postman.com/t/handling-xml-response-with-or-without-namespace-in-postman/21282 "2021-03-11T17:28:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [March 11, 2021, 5:28pm UTC](https://community.postman.com/t/handling-xml-response-with-or-without-namespace-in-postman/21282/1 "2021-03-11T17:28:54Z")

</div>

While testing an XML response in postman, we need to convert XML data to JSON in order to traverse child nodes of an XML document. XML documents can be with/without namespaces. If XML documents have namespaces, then those are declared as attributes to the XML tag. There may or may not be prefixes associated with XML tags containing namespaces. There are different methods or ways to convert XML to JSON, a few of which I tried to list and apply.  
[Link](https://deciphermiddleware.blogspot.com/2021/03/handling-xml-documents-with-or-without.html?m=1)

Please share your valuable feedback 😊

---

<div class="post-metadata">

**Author:** ![hannah.neil](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hannah.neil/32/4477_2.png) [@hannah.neil](https://community.postman.com/u/hannah.neil)\
**Post date:** [March 12, 2021, 12:13am UTC](https://community.postman.com/t/handling-xml-response-with-or-without-namespace-in-postman/21282/2 "2021-03-12T00:13:29Z")

</div>

Love that you put this together. Thanks for sharing!

---

<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/handling-xml-response-with-or-without-namespace-in-postman/21282/3 "2024-12-12T14:46:57Z")

</div>

Closed on December 12, 2024, 2:46pm UTC

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