Learn R Programming

openxlsx2 (version 1.4)

xml_rm_child: 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 read_xml()

Examples

Run this code
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