Oracle Error ORA-19248: XQTY0028 – invalid node in document constructor

Oracle Error Message

ORA-19248: XQTY0028 – invalid node in document constructor

Reason for the Error

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

Solution

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