Oracle Solution for Error ora-19280

Solution for Oracle Error ORA-19280

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

What triggered the Error:

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

What should we do to fix it:

rrect the XQuery expression to return an atomic value.