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