powered by
This is useful when you want to figure out where nodes matching an xpath expression live in a document.
xml_path(x)
A character vector.
A document, node, or node set.
x <- read_xml("") xml_path(xml_find_all(x, ".//baz"))
Run the code above in your browser using DataLab