Retrieving XML data

You can retrieve entire XML documents from XML columns by using an SQL SELECT statement. Alternatively, you can use SQL with XML extensions (SQL/XML) to retrieve portions of documents.

The SQL/XML functions that supports retrieval of portions of XML documents are XMLQUERY and XMLTABLE. To filter table rows by XML document content, use the SQL/XML XMLEXISTS predicate.