CurrentImplicitXMLParseOption CLI/ODBC and IBM data server driver configuration keyword
Sets the value of the CURRENT IMPLICIT XMLPARSE OPTION special register.
- db2cli.ini keyword syntax:
- CurrentImplicitXMLParseOption = 'STRIP WHITESPACE' | 'PRESERVE WHITESPACE'
- IBM® data server driver configuration file (db2dsdriver.cfg) syntax:
- <parameter name="CurrentImplicitXMLParseOption" value="'STRIP WHITESPACE' | 'PRESERVE WHITESPACE'"/>
Attention: The IBM data server
driver configuration
file (db2dsdriver.cfg) syntax is available in Db2 11.5.4 and later.
- Default setting:
- Whitespace is stripped during implicit non-validating parsing.
- Equivalent connection attribute:
- SQL_ATTR_CURRENT_IMPLICIT_XMLPARSE_OPTION
- Usage notes:
Setting this keyword issues the SET CURRENT IMPLICIT XMLPARSE OPTION statement after every connection to a database. By default, this statement is not issued.
The SET CURRENT IMPLICIT XMLPARSE OPTION statement sets the CURRENT IMPLICIT XMLPARSE OPTION special register, which controls whether white space is stripped or preserved during implicit non-validating parsing.
CurrentImplicitXMLParseOption does not affect explicit parsing with the XMLPARSE function.
The supported settings for CurrentImplicitXMLParseOption
are:
- STRIP WHITESPACE - white space is removed when an XML document is implicitly parsed. This is the default setting.
- PRESERVE WHITESPACE - white space is preserved when an XML document is implicitly parsed.