parent_node property

parent_node property

The parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.

Definition:

@property
def parent_node(self):
    ...

See Also