Oracle Error Message
ORA-31606: XML context number does not match any previously allocated context
Reason for 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.
Solution
Always call XMLINIT before any other methods in pkg. UTL_XML.