xml_rm_child {openxlsx2} | R Documentation |
remove xml child to node
Description
remove xml child to node
Usage
xml_rm_child(xml_node, xml_child, level, which = 0, pointer = FALSE, ...)
Arguments
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 |
Examples
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"))
[Package openxlsx2 version 1.8 Index]