document property
XmlDocument?
document
Return the document that contains this node, or null
if the node is
not part of a document.
Implementation
XmlDocument? get document {
final node = root;
return node is XmlDocument ? node : null;
}