Oracle Error ORA-19280: XQuery dynamic type mismatch: expected atomic value – got node

Oracle Error Message

ORA-19280: XQuery dynamic type mismatch: expected atomic value – got node

Reason for the Error

A node was passed in to the expression where an atomic value was expected.

Solution

Correct the XQuery expression to return an atomic value.