xml_serialize(object, connection, ...) xml_unserialize(connection, ...)
serialize
NULL
unserialize
read_xml
library(xml2) x <- read_xml("<a> <b><c>123</c></b> <b><c>456</c></b> </a>") b <- xml_find_all(x, "//b") out <- xml_serialize(b, NULL) xml_unserialize(out)
Run the code above in your browser using DataCamp Workspace