DB2® XQuery has size limits for string literals and queries.
The size limit for a string literal is 32672 bytes.
The size limit for the length of a query is 2 097 152 bytes.