If you want to run XQuery statements statically on DB2 Database for Linux, UNIX, and Windows Version 9.5, you must wrap them inside the SQL scalar function XMLQUERY. For more information, see XMLQUERY function overview.
pureQuery logs a message when an application attempts to run an XQuery statement. If you do not reconfigure your XQuery statements to run them statically, you must set the value of allowDynamicSQL to true, or allow it to default to true.