Oracle Solution for Error ora-31606

Solution for Oracle Error ORA-31606

ORA-31606: XML context number

does not match any previously allocated context

What triggered the Error:

A method in package UTL_XML was called with an invalid XML context handle. All handles must have previously been allocated by UTL_XML.XMLINIT.

What should we do to fix it:

Always call XMLINIT before any other methods in pkg. UTL_XML.