-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
featurea feature request or enhancementa feature request or enhancement
Description
I find I need something like this function fairly often:
xml_replace_contents <- function(node, new) {
xml2::xml_remove(xml2::xml_contents(node))
contents <- xml2::xml_contents(new)
for (child in contents) {
xml2::xml_add_child(node, child)
}
}Maybe also suggests need for xml_add_children()?
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement