Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL XML Question

RE: SQL XML Question

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Fri, 22 Sep 2006 22:25:37 +0200
Message-ID: <F2C9CCA71510B442AF71446CAE8AEBAF01A99C@MSXVS04.trivadis.com>


Steve

> Third (doesn't return author, firstname or ISBN)?

Two problems here...

  1. the XPath expression '/bookcatalog/book/title/firstname' is wrong. You should use '/bookcatalog/book/author/firstname'.
  2. extractValue cannot be used with an expression like '/bookcatalog/book/title/author' because it contains sub-nodes.

> Fourth (Returns incorrect value from the existsNode function)?

The XPath expression '/bookcatalog/book/title[QUERY="History of Interviews"]' should be '/bookcatalog/book/title[text()="History of Interviews"]'.

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Sep 22 2006 - 15:25:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US