Oracle Solution for Error ora-31186

Solution for Oracle Error ORA-31186

ORA-31186: Document contains too many nodes

What triggered the Error:

Unable to load the document because it has exceeded the maximum allocated number of DOM nodes.

What should we do to fix it:

Reduces the size of the document.