Oracle Error ORA-19122: unsupported XQuery declaration

Oracle Error Message

ORA-19122: unsupported XQuery declaration

Reason for the Error

The program specified an XQuery declaration that is not supported.

Solution

Rewrite the XQuery with a declaration that is supported.