Retrieve the xpath to a node
This is useful when you want to figure out where nodes matching an xpath expression live in a document.
xml_path(x)
x |
A document, node, or node set. |
A character vector.
x <- read_xml("<foo><bar><baz /></bar><baz /></foo>") xml_path(xml_find_all(x, ".//baz"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.