Oracle Message ORA-19226 - XPTY0006 - XQuery dynamic type mismatch: expected string got string

ERRORXPTY0006 - XQuery dynamic type mismatch: expected string got string
CAUSEThe expression could not be used because its dynamic type did not match the required type as specified by XQuery sequencetype matching rules.
ACTIONFix the expression to return the expected type or use appropriate cast functions.