How can I fetch the data out of the query? I need the tags "Result", "ApprovalCode" and "id" from the body:
<ns28:response xmlns:ns2="xx" xmlns:ns40="yy" Result="Approved"ApprovalCode="529827"><ns28:Specific><ns14:CardVsdc Id="3"/></ns28:Specific>
select Id
into v_RiskLevel
from xmltable('/response' passing g_xmlResult columns
Id varchar2(50) path '@ApprovalCode');