Validating Elements in XML response

I have a Test where I Post a XML request and got response in XML, Now i want to validate various values in XML response using xpath.

For instance in response below i want to validate : /RCExtResponse/Response/status =ok
Do we have this inbuild in k6 ? Will it support xpath or any other way i can validate this ?

I can validate only response.status ==200 for now not the content. ok lsdsadadjjff deleted The medication was saved without a provider because the provider could not be identified. 04/04/2023 06:06:51

Hi @9779012177 !

The k6 has no native XML parser right now but for most cases the parseHTML should be enough. Does it work in your case?

Let me know if that answers,