# How to parse XML using XPATH from SOAP API in Logstash

**URL:** <https://discuss.elastic.co/t/how-to-parse-xml-using-xpath-from-soap-api-in-logstash/223979>\
**Category:** Logstash\
**Created:** [March 17, 2020, 6:05pm UTC](https://discuss.elastic.co/t/how-to-parse-xml-using-xpath-from-soap-api-in-logstash/223979 "2020-03-17T18:05:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Enyer\_Quiroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enyer_quiroz/32/56464_2.png) [@Enyer\_Quiroz](https://discuss.elastic.co/u/Enyer_Quiroz)\
**Post date:** [March 20, 2020, 2:52pm UTC](https://discuss.elastic.co/t/how-to-parse-xml-using-xpath-from-soap-api-in-logstash/223979/2 "2020-03-20T14:52:25Z")

</div>

This was solved, Solution was change the Xpath to  
` /soapenv:Envelope/soapenv:Body/multiRef/metricValue/text()`

---

_[View the full topic](https://discuss.elastic.co/t/how-to-parse-xml-using-xpath-from-soap-api-in-logstash/223979)._
