regex'ing from soap response

Basically, how do I save the ConversionRateResult in a local variable in Gatling using regex?

`

<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>
soap:Body

0.1492

</soap:Body>
</soap:Envelope>

`

To accomplish the same With JSON I would say something like:

.check(jsonPath("$.profile.memberships[0].scanNumber").saveAs("scanNr")))

If I where to look for a “scannumber” in the JSON body.

But how to do it with soap response?

Magnus

JsonPath is for JSON, not XML.

You might want to have a look at XPath.