powered by
remove xml child to node
xml_rm_child(xml_node, xml_child, level, which = 0, pointer = FALSE, ...)
xml_node
xml_child
optional level, if missing the first child is picked
optional index which node to remove, if multiple are available. Default disabled all will be removed
pointer
additional arguments passed to read_xml()
read_xml()
xml_node <- "" 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"))
Run the code above in your browser using DataLab