DB2 Version 9.7 for Linux, UNIX, and Windows

CurrentImplicitXMLParseOption CLI/ODBC configuration keyword

Sets the value of the CURRENT IMPLICIT XMLPARSE OPTION special register.

db2cli.ini keyword syntax:
CurrentImplicitXMLParseOption = 'STRIP WHITESPACE' | 'PRESERVE WHITESPACE'
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.