XML query functions

This section describes the SQL extensions for accessing and processing XML documents in SQL statements. xmlextract, xmlparse, and xmltest are new reserved words, introduced by XML services.

The functions are:

Table 2-1: XML query functions

Function

Description

xmlextract

A built-in function that applies an XML query expression to an XML document and returns the selected result.

xmltest

A SQL predicate that applies an XML query expression to an XML document and returns the boolean result.

xmlparse

A built-in function that parses and indexes an XML document for more efficient processing.

xmlrepresentation

A built-in function that determines whether a given image column contains a parsed XML document.

xmlvalidate

A built-in function that validates an XML document against a DTD or XML schema.