ORA-19025: EXTRACTVALUE returns value of only one node [message #364790] |
Wed, 10 December 2008 01:14 |
huda10
Messages: 23 Registered: December 2008
|
Junior Member |
|
|
Hi,
The following error message
"ORA-19025: EXTRACTVALUE returns value of only one node
Given XPath points to more than one node.
Action: Rewrite the query so that exactly one node is returned."
is displayed when trying to query. I'm using the following query to extract xml data from the table.
select EXTRACTVALUE(xml_file,
'emp/row/ename'
) ENAME
from test_clob1.
table creation--
CREATE TABLE test_clob1 (
id NUMBER(15)
, file_name VARCHAR2(1000)
, xml_file xmltype
, timestamp DATE
);
xmldata file--
<emp>
<row>
<empno>3</empno>
<ename>ra</ename>
</row>
<row>
<empno>9</empno>
<ename>a</ename>
</row>
<row>
<empno>6</empno>
<ename>r</ename>
</row>
</emp>.
Can you please help on this.
|
|
|
|
|
|
|