# Parse text in xml

**URL:** <https://community.postman.com/t/parse-text-in-xml/24553>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [June 6, 2021, 2:35am UTC](https://community.postman.com/t/parse-text-in-xml/24553 "2021-06-06T02:35:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khan\_aktas](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/khan_aktas/32/8816_2.png) [@khan\_aktas](https://community.postman.com/u/khan_aktas)\
**Post date:** [June 6, 2021, 2:35am UTC](https://community.postman.com/t/parse-text-in-xml/24553/1 "2021-06-06T02:35:23Z")

</div>

_My question_:  
Greetings!

Is it possible to parse (xml response) from such a returned response?  
For example data inside shippingDate\>?  
I learned how to parse data, but still can’t figure out how to do it with data like that.  
I think the problem is that the information I needed was placed in

soapenv:Body\>  
nam:documentSignatureRequest\>  
signableData\>\<![CDATA

Apparently for this reason I cannot get the data I need.

Sorry for my english

_Details_:

 ![изображение_2021-06-06_083636](https://us1.discourse-cdn.com/getpostman/original/3X/7/0/702ce4ec2694f38d798e93df6d3d67ee277171ce.png)

---

<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:** [June 6, 2021, 8:38am UTC](https://community.postman.com/t/parse-text-in-xml/24553/2 "2021-06-06T08:38:13Z")

</div>

Hi @khan_aktas, Welcome to the community!

If I understood correctly then you want to fetch some element within this data that you highlighted.

CData tag here refers to the text content inside the xml tag without alterations.

One way is to parse this data again through xmltojs and convert this to json.

Hope this helps

---

<div class="post-metadata">

**Author:** ![khan\_aktas](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/khan_aktas/32/8816_2.png) [@khan\_aktas](https://community.postman.com/u/khan_aktas)\
**Post date:** [June 6, 2021, 2:38pm UTC](https://community.postman.com/t/parse-text-in-xml/24553/3 "2021-06-06T14:38:11Z")

</div>

Hi @pranavdavar  
I had to think a little, but I managed to figure out how to do what you suggested and it worked.  
Also in the process, I found that it was possible to get around this problem, I used another method, which returns me only what I need.

Thank you pranavdavar, i wish you and your family good health!
