Oracle Error Message
ORA-19037: XMLType result can not be a fragment
Reason for the Error
The select item of the query in newContextFromHierarchy() is an XML fragment.
Solution
Make sure the select item of the query in newContextFromHierarchy() is NOT an XML fragment