Oracle Solution for Error ora-31038

Solution for Oracle Error ORA-31038

ORA-31038: Invalid string value: "string

"

What triggered the Error:

The text in the XML document did not represent a valid value given the datatype and other constraints in the schema.

What should we do to fix it:

Ensure that the specified value in XML documents is valid with respect to the datatype and other constraints in the schema.