Start of change

-20345   THE XML VALUE IS NOT A WELL-FORMED DOCUMENT WITH A SINGLE ROOT ELEMENT

Explanation

DB2® attempted to use an XML value that was not well-formed.

Well-formed XML is required when:
  • Storing an XML value into a table.
  • Processing an XML value that has been returned from a remote site within an SQL procedural language stored procedure.

System action

The statement cannot be processed.

User response

Modify the XML value so that it is well-formed with a single root element.

SQLSTATE

2200L

End of change