XMLNode.ownerDocument as XMLDocument
The document node containing this node, if any.
fn.head(xdmp.value("//example")).ownerDocument.firstChild.nodeName