xml_get_paths: view the paths of xml tree. keeps order as one dives into...

View source: R/xml_get_paths.R

xml_get_pathsR Documentation

view the paths of xml tree. keeps order as one dives into each node. option to mark any terminal paths (paths that end on the last possible node).

Description

view the paths of xml tree. keeps order as one dives into each node. option to mark any terminal paths (paths that end on the last possible node).

Usage

xml_get_paths(doc, mark_terminal = ifelse(only_terminal_parent, ">>", ""),
  only_terminal_parent = FALSE)

Arguments

doc

an xml doc

mark_terminal

string used to mark terminal nodes. NULL by default.

only_terminal_parent

whether to return only the parent node of any terminal branch


dantonnoriega/xmltools documentation built on March 26, 2023, 10:46 a.m.