| write_eml {EML} | R Documentation |
write_eml
write_eml(eml, file, namespaces = NULL, ns = "eml", ...)
eml |
an eml class object |
file |
file name to write XML. |
namespaces |
named character vector of additional XML namespaces to use. |
ns |
root namespace abbreviation |
... |
additional arguments to |
If file is not specified, the result is a character string containing the resulting XML content. Otherwise return silently.
f <- system.file("examples", "example-eml-valid.xml", package = "EML")
eml <- read_eml(f)
write_eml(eml, "test.xml")
unlink("test.xml") # clean up