Skip to content

xml_ancestors as akin to xml_parent() and equivalent to xml_find_all(., "ancestor::*") #454

Open
@MichaelChirico

Description

@MichaelChirico

This is an equivalent to #409 in the other direction. For consistency it would be nice to have such a functional equivalent.

FWIW, we are also finding xml_parent() much more performant than xml_find_{first,all}(x, "parent::*"):

r-lib/lintr#2718 (comment)

So presumably the same could be true of xml_ancestor().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions