Returns the XML document containing the specified element.
Parameter:
element
The element whose document is requested. If not specified, the generator context element is assumed, i.e. the same as the call:getXMLDocument(contextElement)
Note: If this parameter is
null
, the function returnsnull
.
Returns:
The DSM element of#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 returnsnull
.
See Also:
All Element Types |#DOCUMENT
,#DOCUMENTS
;
findXMLDocument(), loadXMLDocument()