Oracle Solution for Error ora-30951

Solution for Oracle Error ORA-30951

ORA-30951: Element or attribute at Xpath string exceeds maximum length

What triggered the Error:

An attempt was made to insert a node of length exceeding the maximum length (specified by the maxLength facet) into an XML document.

What should we do to fix it:

Do not attempt to add a node exceeding the maximum length to XML documents.