XML GET WHITESPACE-FLAGS

This statement has the following parameter:

Parameter Description
Flags A numeric literal or identifier of a numeric data item with a value that represents one or more states of whitespace preservation. Valid flags and their numerical values are:
78 WHITESPACE-DEFAULT-FLAGS Value 0.  *> keep all whitespace
78 WHITESPACE-STRIP-CONTROL Value 1.  *> strip all (TAB, LF, CR) characters
78 WHITESPACE-PRESERVE-TAB  Value 16. *> keep TAB characters when stripping 
78 WHITESPACE-PRESERVE-LF   Value 32. *> keep LF characters when stripping
78 WHITESPACE-PRESERVE-CR   Value 64. *> keep CR characters when stripping
78 WHITESPACE-NORMALIZE     Value 65536. *>collapse whitespace (space, LF, TAB, CR)

Description

The XML GET WHITESPACE-FLAGS statement displays the whitespace preservation behavior (as set by XML SET WHITESPACE-FLAGS) in effect.

The valid flags are defined in the COPY file lixmldef.cpy.

Example

The following example sets the value of CURRENT-WS-FLAGS to the current value of the whitespace flags in use by XML Extensions:

XML GET WHITESPACE-FLAGS CURRENT-WS-FLAGS
Note: CURRENT-WS-FLAGS is a numeric data item with at least 6 digits.