Returns the XML document containing the specified element.
Parameter:
element
getXMLDocument(contextElement)
Note: If this parameter is null
, the function returns null
.
#DOCUMENT
type that represents the entire XML document that contains the specified element.
When the specified element is the document itself, that element will be returned.
Note: The XML DSM may contain one extra element that does not belong to any particular XML document.
That element has #DOCUMENTS
type and represents all open XML documents (all #DOCUMENT
elements
are children of that element). When such an element is specified in the parameter, the function returns null
.
#DOCUMENT
, #DOCUMENTS
;findXMLDocument(), loadXMLDocument()