Encoding considerations for input of XML data to a Db2 table

When you update XML data in a Db2 table, you need to avoid data loss.

When you store XML data in a Db2 table, observe the following rules:
  • For externally encoded XML data (data that is sent to the database server using character data types), any internally encoded declaration needs to match the external encoding.
  • For internally encoded XML data (data that is sent to the database server using binary data types), the application must ensure that the data contains accurate encoding information.