Extract value from XML
Hi,
Given the following XML:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>double</ConversionRateResult>
</ConversionRateResponse>
</soap:Body>
</soap:Envelope>
How do I extract the ConversionRateResult value using plsql? I'm not sure what XPath value to use. I've tried variations on
l_rate := respXML.extract('ConversionRateResult/text()', '"http://www.webserviceX.NET/"').getstringval();
but i get an "ORA-31013: Invalid XPATH expression" error.
Any help would be appreciated.
Thank you,
Andrew.