Oracle Error OCI-30951: Element or attribute at Xpath string exceeds maximum length

Oracle Error Message

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

Reason for 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.

Solution

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