write_xml {xml2} | R Documentation |
This writes out both XML and normalised HTML.
write_xml(x, file, ...)
x |
A document or node to write to disk. It's not possible to save nodesets containing more than one node. |
file |
Path to file to write. |
... |
additional arguments passed to methods. |
h <- read_html("<p>Hi!</p>") tmp <- tempfile(fileext = ".xml") write_xml(h, tmp) read_xml(tmp)