xml_path | R Documentation |
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.