Example 1  Example 3

Chapter 2: XML Services

Example 2

The parameters of a function call can be complex XPath expressions that include predicates. They can also be nested function calls:

select xmlextract 
('//book[normalize-space(tolower(title))="seven years in trenton"]/author',   text_doc)
from sample_docs where name_doc='bookstore'-----------------------------------------
<author>
     <first-name>Joe</first-name>
     <last-name>Bob</last-name>
     <award>Trenton Literary Review 
     Honorable Mention</award>
</author> 




Copyright © 2004. Sybase Inc. All rights reserved. Example 3

View this book as PDF