DB2 10.5 for Linux, UNIX, and Windows

Whitespace

Whitespace is allowed in most XQuery expressions to improve readability even if whitespace is not part of the syntax for the expression. Whitespace consists of space characters (X'20'), carriage returns (X'0D'), line feeds (X'0A'), and tabs (X'09').

In general, whitespace is not significant in a query, except in the following situations where whitespace is preserved:

For example, the following expressions require whitespace for clarity: