Cause
An attempt was made to atomize an XML element node that cannot be atomized. The in-scope XML schema specifies that the element node has non-mixed complex content. Some code is attempting to convert the node to an atomic value. Element nodes with non-mixed complex content cannot be converted to atomic values.
Response
If the schema is correct, fix the code so it does not attempt to atomize the element node. The code should not explicitly atomize the node by calling fn:data on it. The code should not implicitly atomize the node by passing it as a parameter to a function expecting an atomic value. If the code is correct, fix the schema so that the complex type for the element node is mixed.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.