Oracle Error ORA-19012: Cannot convert XML fragment to the required datatype

Oracle Error Message

ORA-19012: Cannot convert XML fragment to the required datatype

Reason for the Error

A conversion to a datatype was requested which cannot be performed

Solution

The XMLType may contain fragments and other elements which cannot be converted to the appropriate datatype.