XPath Expression won't evaluate
462533Nov 15 2005 — edited Nov 18 2005Hi,
I am using the ora:doc() function to read an xml and XPath to get extract particular values from it. The issue is that the XPath expression doesnt evaluate correctly on Oracle BPEL process manager where as the same expression is being evaluated correctly in XMLSPY with XPath 1.0.
The XML that I am trying to read is of the format
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2006 U (http://www.altova.com)-->
<n:CHNotification xmlns:n="http://www.example.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org
C:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELWorkspace\testXML\CallHomeNotification.xsd">
<Notification id="String">
<n:mailto>String</n:mailto>
<n:mailcc>String</n:mailcc>
<n:subject>String</n:subject>
<n:body>String</n:body>
<n:additionalbody>String</n:additionalbody>
</Notification>
<Notification id="String32432">
<n:mailto>String</n:mailto>
<n:mailcc>String</n:mailcc>
<n:subject>String</n:subject>
<n:body>String</n:body>
<n:additionalbody>String</n:additionalbody>
</Notification>
</n:CHNotification>
The function being used in OracleBPEL Process manager is
ora:doc('${server_url}/xmllib/notification.xml', //Notification[@id="String"]/n:mailto)
Can somebody please tell me where I could be going wrong?....It'll be a great help.
Thanks,
Gunjan