extracting a value from a soap response

I have this response to a request:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <e:HentRisikoOversiktResponse xmlns:e="urn:stb:forsikring:tjenester:engasjement"> <ef:engasjementOversiktRisikoer xmlns:ef="urn:stb:forsikring:engasjement"> <ef:risikogrupper> <ef:risikogruppe> <ef:beskrivelse>growy</ef:beskrivelse> <ef:risikoer> <ef:risiko> <ef:partref>0005721478</ef:partref>

How could I use a check to save the partref value here?

I tried something like:


But it does not work.

I get this error:


regex(messageId": "([0-9][a-b][A-B])).find(0).exists, found no 1 (100,0%)

Is the path constructed wrong?

BTW: there are several nodes of type “risiko” in the response so i might need to specify that it is the first node?



could help me here?