# HTTP monitor - Post-execution script - XML format in the response

**URL:** <https://community.dynatrace.com/t/http-monitor-post-execution-script-xml-format-in-the-response/34670>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor\
**Created:** [March 30, 2022, 2:09pm UTC](https://community.dynatrace.com/t/http-monitor-post-execution-script-xml-format-in-the-response/34670 "2022-03-30T14:09:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [March 30, 2022, 3:46pm UTC](https://community.dynatrace.com/t/http-monitor-post-execution-script-xml-format-in-the-response/34670/2 "2022-03-30T15:46:20Z")

</div>

Hi Carlos,

you should be fine working with xml without converting it. This is a snippet I used for finding a string in an xml response:

```auto
var body = response.getResponseBody();
PubDateString = body.match(/<pubDate>(.*?)<\/pubDate>/g)[0];
api.info("PubDateString is : "+PubDateString);

```

---

_[View the full topic](https://community.dynatrace.com/t/http-monitor-post-execution-script-xml-format-in-the-response/34670)._
