# \#xml-response

**URL:** https://community.postman.com/tag/xml-response/197.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Using xml2js gives me an odd result](https://community.postman.com/t/using-xml2js-gives-me-an-odd-result/81898)

<div class="topic-metadata">

**Author:** [@Smudge](https://community.postman.com/u/Smudge)\
**Replies:** 3\
**Last updated:** [July 7, 2025, 10:02am UTC](https://community.postman.com/t/using-xml2js-gives-me-an-odd-result/81898 "2025-07-07T10:02:14Z")

</div>

Hi all, first post so be gentle! Trying to convert an XML response into JSON so I can set some collection variables using the values in there. I’m using the xml2js library but seem to be getting an odd console log which…

---

## [Response bodies with "strange" content-types default to "Hex" view](https://community.postman.com/t/response-bodies-with-strange-content-types-default-to-hex-view/73597)

<div class="topic-metadata">

**Author:** [@swobi71](https://community.postman.com/u/swobi71)\
**Replies:** 7\
**Last updated:** [January 21, 2025, 1:26pm UTC](https://community.postman.com/t/response-bodies-with-strange-content-types-default-to-hex-view/73597 "2025-01-21T13:26:26Z")

</div>

Since the latest update (Version 11.27.3) the “default” view of my responses with “strange” content-types (multipart/related; type=“application/xop+xml”; boundary=“uuid:aaaaaaa-bbbb-ccccc”; start=“root.message@cxf.apach…

---

## [XML responses with &amp; in URLs "broken"](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893)

<div class="topic-metadata">

**Author:** [@swobi71](https://community.postman.com/u/swobi71)\
**Replies:** 1\
**Last updated:** [January 16, 2025, 1:37pm UTC](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893 "2025-01-16T13:37:36Z")

</div>

While testing a new API I had the problem that the XML response contains a URL which itself contains a URL: \<httpActionLink\> \<url\>https://server.com?token=123456&amp;redirectUrl=%2Fpath%2Fpage.jsf\</url\> \</httpActi…

---

## [XML response escape characters](https://community.postman.com/t/xml-response-escape-characters/14450)

<div class="topic-metadata">

**Author:** [@srepetop](https://community.postman.com/u/srepetop)\
**Replies:** 8\
**Last updated:** [June 21, 2024, 12:56pm UTC](https://community.postman.com/t/xml-response-escape-characters/14450 "2024-06-21T12:56:51Z")

</div>

Hi everyone. I’m trying to obtain a correct XML response without escape characters but seems i’m not capable of. I’m sending a POST request with an XML, it sends and receives correctly a response (also an XML), but the…

---

## [Request returned with XML data](https://community.postman.com/t/request-returned-with-xml-data/42666)

<div class="topic-metadata">

**Author:** [@altimetry-geoscienti](https://community.postman.com/u/altimetry-geoscienti)\
**Replies:** 4\
**Last updated:** [January 20, 2024, 1:34am UTC](https://community.postman.com/t/request-returned-with-xml-data/42666 "2024-01-20T01:34:24Z")

</div>

I’m trying to automate rating tracks in my Plex media library. I think I need to pull a list of track ids through a GET request filtered by different attributes. I’ve figured out how to do this, and am getting an XML b…

---

## [How to validate XML Response with Predicates/namespace](https://community.postman.com/t/how-to-validate-xml-response-with-predicates-namespace/55274)

<div class="topic-metadata">

**Author:** [@smrajasubramanian](https://community.postman.com/u/smrajasubramanian)\
**Replies:** 2\
**Last updated:** [December 5, 2023, 11:28am UTC](https://community.postman.com/t/how-to-validate-xml-response-with-predicates-namespace/55274 "2023-12-05T11:28:02Z")

</div>

Below is my XML Response: \<env:Envelope xmlns:env="http://schemas" xmlns:wsa="http://www.w3.org"\> \<env:Body\> \<BOR xmlns:oraxsl="http://www.oracle.com" xmlns:oracle-xsl-mapper="http://www.oracle2.com" xmlns:inp1="http…

---

## [How I can do a test to response XML variable?](https://community.postman.com/t/how-i-can-do-a-test-to-response-xml-variable/47061)

<div class="topic-metadata">

**Author:** [@cargila](https://community.postman.com/u/cargila)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 10:25am UTC](https://community.postman.com/t/how-i-can-do-a-test-to-response-xml-variable/47061 "2023-05-04T10:25:16Z")

</div>

I’m testing an XML response, where they change tags based on the response data and I can’t find a way.

---

## [Parse XML response to get a value](https://community.postman.com/t/parse-xml-response-to-get-a-value/40593)

<div class="topic-metadata">

**Author:** [@tibornagy](https://community.postman.com/u/tibornagy)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 11:50am UTC](https://community.postman.com/t/parse-xml-response-to-get-a-value/40593 "2022-10-31T11:50:32Z")

</div>

Hi guys, I have a POST request and get the following response in XML: \<feed xmlns="http://www.w3.org/2005/Atom"\> \<link href="https://xyz?page=1&pagesize=50" rel="self" /\> \<link href="https://xyz/biprws/v1/cmsq…

---

## [415 Unsupported Media Type](https://community.postman.com/t/415-unsupported-media-type/38697)

<div class="topic-metadata">

**Author:** [@manohar18mutyala](https://community.postman.com/u/manohar18mutyala)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 6:19am UTC](https://community.postman.com/t/415-unsupported-media-type/38697 "2022-10-27T06:19:00Z")

</div>

Hi All, I’m trying to create Post Request , but getting 415 Unsupported Media Type error . can anyone explain why I’m getting this error

---

## [Tests: Cannot get XML-body (got stream instead) from SOAP-request](https://community.postman.com/t/tests-cannot-get-xml-body-got-stream-instead-from-soap-request/18324)

<div class="topic-metadata">

**Author:** [@53r93yCD](https://community.postman.com/u/53r93yCD)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 12:58pm UTC](https://community.postman.com/t/tests-cannot-get-xml-body-got-stream-instead-from-soap-request/18324 "2020-12-08T12:58:48Z")

</div>

Trying to send SOAP-request from script (Tests tab). Script itself: // Example with a full-fledged request const PHP = pm.variables.get("PHP") console.log(PHP) const postRequest = { url: PHP+'/my/path', method: 'PO…

---

## [How to parse xml within CDATA inside XML host response?](https://community.postman.com/t/how-to-parse-xml-within-cdata-inside-xml-host-response/16085)

<div class="topic-metadata">

**Author:** [@alberto.bura](https://community.postman.com/u/alberto.bura)\
**Replies:** 5\
**Last updated:** [September 23, 2020, 4:08pm UTC](https://community.postman.com/t/how-to-parse-xml-within-cdata-inside-xml-host-response/16085 "2020-09-23T16:08:32Z")

</div>

Hi everyone, I’ve read multiple resources here and elsewhere, but I failed to resolve my problem. I send a POST request in XML to a host having CDATA made of another XML “request”, and the response has the same structu…

---

## [XML response validation](https://community.postman.com/t/xml-response-validation/14746)

<div class="topic-metadata">

**Author:** [@swh127](https://community.postman.com/u/swh127)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 12:36pm UTC](https://community.postman.com/t/xml-response-validation/14746 "2020-08-06T12:36:30Z")

</div>

Our application generates XML responses to web queries. I know you can change the xml to json to verify content, however we have an XSD I would like to validate the response to. Is there any way to do this in postman? …

---

## [Visualizer and XML?](https://community.postman.com/t/visualizer-and-xml/9969)

<div class="topic-metadata">

**Author:** [@jamesha100](https://community.postman.com/u/jamesha100)\
**Replies:** 1\
**Last updated:** [January 13, 2020, 6:55pm UTC](https://community.postman.com/t/visualizer-and-xml/9969 "2020-01-13T18:55:28Z")

</div>

Hi, I have a Cisco product with an API that provides responses in XML format. Can this data be shown using the new Postman Visualizer feature? - it is just basic table data. All the Visualizer examples I have found use …

---

## [Working with XML in Postman Scripts](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649)

<div class="topic-metadata">

**Author:** [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 11:49am UTC](https://community.postman.com/t/working-with-xml-in-postman-scripts/8649 "2019-10-31T11:49:18Z")

</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 t…

---

## [Remove XML Response header from response body](https://community.postman.com/t/remove-xml-response-header-from-response-body/7372)

<div class="topic-metadata">

**Author:** [@Dallas\_Anderson](https://community.postman.com/u/Dallas_Anderson)\
**Replies:** 2\
**Last updated:** [September 3, 2019, 2:53pm UTC](https://community.postman.com/t/remove-xml-response-header-from-response-body/7372 "2019-09-03T14:53:32Z")

</div>

I have a SOAP service that delivers text and tiff files. In Postman, each response comes back with additional response header XML that then makes the files unreadable by certain apps that consume them. Anyone else have a…

---

## [Size of JSON array](https://community.postman.com/t/size-of-json-array/7071)

<div class="topic-metadata">

**Author:** [@giuseppe.lacagnina](https://community.postman.com/u/giuseppe.lacagnina)\
**Replies:** 9\
**Last updated:** [August 9, 2019, 1:27pm UTC](https://community.postman.com/t/size-of-json-array/7071 "2019-08-09T13:27:07Z")

</div>

Hi. I have calls that return me an xml. To navigate the response, I first convert it to JSON with the following: var jsonObject = xml2Json(responseBody); I then address its parts with variables hierarchically like thi…

---

## [I am getting XML response and want to validate certain fields and that fields should not be blank](https://community.postman.com/t/i-am-getting-xml-response-and-want-to-validate-certain-fields-and-that-fields-should-not-be-blank/2183)

<div class="topic-metadata">

**Author:** [@farhan.quidwai](https://community.postman.com/u/farhan.quidwai)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 12:50pm UTC](https://community.postman.com/t/i-am-getting-xml-response-and-want-to-validate-certain-fields-and-that-fields-should-not-be-blank/2183 "2018-08-10T12:50:26Z")

</div>

I am getting XML response and want to validate certain fields and that fields should not be blank.
