Oracle Solution for Error ora-19227

Solution for Oracle Error ORA-19227

ORA-19227: XPTY0007 - fn:data function is applied to a node (type (string)) whose type annotation denotes a complex type with non-mixed complex content.

What triggered the Error:

e input node for atomization contained a type annotation that denoted a complex type with non-mixed complex content.

What should we do to fix it:

x the input expression to fn:data to be a node that does not contain non-mixed complex content.