DB2 Scalar functions - XMLQUERY
The XMLQUERY function returns an XML value from the evaluation of an XQuery expression possibly using specified input arguments as XQuery variables.
The schema is SYSIBM. The function name cannot be specified as a qualified name.
This clause has no impact on how non-XML values are passed.
The data type of the result is XML; it cannot be null.
If the evaluation of the XQuery expression results in an error, then the XMLQUERY function returns the XQuery error (SQLSTATE class '10').