Description Usage Arguments Value Examples
This is a helper function that uses xml_find_first
to retrieve a node and
then extracts the text from that node.
1 | xml_find_text(x, xpath, ns = xml_ns(x), trim = FALSE)
|
x |
A document, node or node set |
xpath |
A string containing a xpath (1.0) expression |
ns |
Optionally, a named vector giving prefix-url pairs, as produced
by |
trim |
If |
A character vector.
1 2 | x <- xml2::read_xml("<a>foo</a>")
xml_find_text(x, "/a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.