Oracle Message ORA-19239 - XPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value

ERRORXPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value
CAUSEThe step expression returned a sequence containing an atomic value.
ACTIONFix the path expression to return only nodes.