MarkLogic 10 Product Documentation
Element.ownerDocumentElement.ownerDocument as XMLDocument
Summary
This is inherited from the XMLNode object.
The document node containing this node, if any.
Example
fn.head(xdmp.value("//example")).ownerDocument.firstChild.nodeName
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.