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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

special character in xml extract

485366Jan 24 2006 — edited Apr 16 2007
Hi,
I got an xml like this
<?xml version="1.0" encoding="UTF-8"?>
<s:Message xmlns:s="http://ser.com/serve">
<s:Header>
<s:Context>
<s:Name>Contract</s:Name>
<s:Type>REPLY</s:Type>
</s:Context>
</s:Header>
</s:Message>

When I give
xml.extract('//s:Message/s:Header/s:Context/s:Type/text()').getStringVal();

it says

ORA-31013: Invalid XPATH expression
ORA-06512: at "SYS.XMLTYPE", line 0

How to resolve this??

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 14 2007
Added on Jan 24 2006
5 comments
913 views