xml_rm_child | R Documentation |
remove xml child to node
xml_rm_child(xml_node, xml_child, level, which = 0, pointer = FALSE, ...)
xml_node |
xml_node |
xml_child |
xml_child |
level |
optional level, if missing the first child is picked |
which |
optional index which node to remove, if multiple are available. Default disabled all will be removed |
pointer |
pointer |
... |
additional arguments passed to |
xml_node <- "<a><b><c><d/></c></b><c/></a>"
xml_child <- "c"
xml_rm_child(xml_node, xml_child)
xml_rm_child(xml_node, xml_child, level = c("b"))
xml_rm_child(xml_node, "d", level = c("b", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.