Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to specify a list of namespaces in extractvalue

166954Sep 5 2008 — edited Sep 5 2008
I am trying to use extractvalue function on a XML document that uses multiple namespaces. So my XPath expression is something like '/coresalesorder:CreateSalesOrder/corecom:Identification/corecom:ID' . Please note that the expression uses two namespaces.

In this case, how do I specify these two namespaces in the extractvalue function ? I tried something like,

select extractvalue(a.source_order,'/coresalesorder:CreateSalesOrder/corecom:Identification/corecom:ID','xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2",xmlns:coresalesorder="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SalesOrder/V2"')
from source_order a

But this doesn't work. Any help/pointers will be very much appreciated.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2008
Added on Sep 5 2008
1 comment
3,266 views