python lxml get parent code example Example: python lxml get parent parent_xml = child_xml.getparent()