I am trying to get the ancestor node of a DOMElement using the DOMNode::$parent_node property but the parser is giving me a warning that the parent_node property does not exists. DOMElement is a subclass of DOMNode, so shouldn't the parent_node property be inherited by DOMElement? This property is not listed in the documentation for DOMElement. Any help? Thx.