Oracle Solution for Error ora-31072

Solution for Oracle Error ORA-31072

ORA-31072: Too many child nodes in XMLType fragment for updateXML

What triggered the Error:

An attempt was made to pass an XMLType fragment with multiple children as new data for the updateXML operator.

What should we do to fix it:

Extract the desired child from the XMLType before passing it to updateXML as the desired new XML node.