xml_add_sbling()
and xml_add_child()
are used to insert a node
as a sibling or a child. xml_replace()
replaces an existing node with
a new node. xml_remove()
removes a node from the tree.
xml_replace(.x, .value, ..., .copy = TRUE)
xml_add_sibling(.x, .value, ..., .where = c("after", "before"), .copy = TRUE)
xml_add_child(.x, .value, ..., .copy = TRUE)
xml_remove(.x, free = FALSE)
.value
before replacing. If this is FALSE
then the node will be moved from it's current location..value
before or after .x
.xml_remove()
,