Oracle Solution for Error ora-19012

Solution for Oracle Error ORA-19012

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

What triggered the Error:

A conversion to a datatype was requested which cannot be performed

What should we do to fix it:

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