Oracle support XPath predicate expressions : XPath « XML « Oracle PL/SQL Tutorial






SQL> CREATE TABLE myTable
  2  (id  NUMBER PRIMARY KEY
  3  ,doc XMLType NOT NULL)
  4  XMLTYPE doc STORE AS CLOB
  5  /

Table created.

SQL>
SQL>
SQL> 
SQL> update myTable
  2  set doc = updateXml( doc,'message[greeting="Hi"]/body/text()', 'test again')
  3  /

0 rows updated.

SQL>
SQL> drop table myTable;

Table dropped.

SQL>








33.11.XPath
33.11.1.Oracle support XPath predicate expressions
33.11.2.XPath text() function
33.11.3.Use the EXTRACT function and the following XPath:/emps/emp/interests/interest/