# Occational warning that xml2Json is deptrecated

**URL:** <https://community.postman.com/t/occational-warning-that-xml2json-is-deptrecated/59745>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [April 9, 2024, 1:43pm UTC](https://community.postman.com/t/occational-warning-that-xml2json-is-deptrecated/59745 "2024-04-09T13:43:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [April 10, 2024, 11:22am UTC](https://community.postman.com/t/occational-warning-that-xml2json-is-deptrecated/59745/2 "2024-04-10T11:22:02Z")

</div>

> [@corrylittlefair](#):
>
> xml2Json

xml2Json has a lot of formatting options.

For example, try the following…

```auto
let respBodyXML = pm.response.text();

let parseString = require('xml2js').parseString;

parseString(respBodyXML, {
    ignoreAttrs: true, 
    explicitArray: false,
}, function (err, result) {
    console.log(result);
});

```

It depends on how complex your XML is, but have a look here (scroll to the bottom) for all of the formatting options.

[xml2js - npm (npmjs.com)](https://www.npmjs.com/package/xml2js)

Have a look here for another topic that shows some of the formatting options in action.

[How to retrieve the names of xml tags - 🙋 Help - Postman Community](https://community.postman.com/t/how-to-retrieve-the-names-of-xml-tags/55427)

---

_[View the full topic](https://community.postman.com/t/occational-warning-that-xml2json-is-deptrecated/59745)._
