Cause
The XML parser encountered an entity reference that is self-referential. It is possible to create recursive entity references in a DTD. For example, an input document of this form will throw XDMP-DOCRECURSE
if read in by xdmp:document-get because the entities ONE and TWO refer to each other:
<?xml version="1.0"?>
<!DOCTYPE RecursiveDTD[
<!ENTITY ZERO "A">
<!ENTITY ONE "&TWO;">
<!ENTITY TWO "&ONE;">
]>
<data>&TWO;</data>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.