Unable to parse xml Response from http-connector

There is POST method API call which is responding with xml data. I am using http-connector in service task and trying to call that API .

using script as output parameter like S(response).

but getting error as undefined-SPIN-01004 No matching data format detected.

can anyone help me on this.

Can you share the script for getting and parsing output parameter?


this link can help you :

thankyou for your response , but the link have an example to work around json response.

I am having xml response which is giving error