I am on Oracle 18c and have an table with column as XMLTYPE which contains the value as below:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ProcessReply xmlns="http://dummy.com/ab/xyz/g16">
<HighestSeverity>PASS</HighestSeverity>
<Notifications>
<Severity>SUCCESS</Severity>
<Source>abcd</Source>
<Code>0000</Code>
<Message>Success</Message>
</Notifications>
</ProcessReply>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I have a Stored Procedure where I am trying to get the value at the node Severity, i.e. SUCCESS. I tried using EXTRACTVALUE keyword to get the value, but it doesn't seem to work.
Any help on the SELECT query to get the node value will be much appreciated. TIA.
okay, found the solution with a little bit of hit-and-trial. The challenge was that my XML has multiple namespaces which can be given as a third parameter to the extract value with space separation. So this query works for me: