Description Usage Arguments Value Examples
Parses through all XML end nodes and returns the text of those nodes in a tibble.
1 | GetXMLNodes(x, nodepath = "*")
|
x |
XML document. |
nodepath |
Xpath to node for which text has to be collected. Defaults to * that will collect text of all nodes. |
Returns xpath to a node, node name and text value in a tibble.
1 2 3 4 | GetXMLNodes(xml2::read_xml("https://www.w3schools.com/xml/simple.xml")) %>%
View()
GetXMLNodes(xml2::read_xml("https://www.w3schools.com/xml/simple.xml"), "calories") %>%
View()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.