XmlParentExtension extension Null safety

on

Properties

depth int
Return the depth of this node in its tree, a root node has depth 0.
read-only
document XmlDocument?
Return the document that contains this node, or null if the node is not part of a document.
read-only
parentElement XmlElement?
Return the first parent of this node that is of type XmlElement, or null if there is none.
read-only
root XmlNode
Return the root of the tree in which this node is found, whether that's a document or another element.
read-only