Oracle Solution for Error ora-19248

Solution for Oracle Error ORA-19248

ORA-19248: XQTY0028 - invalid node in document constructor

What triggered the Error:

e content sequence in a document constructor contained either a document or an attribute node.

What should we do to fix it:

x the content so it does not contain any of the above node types.