Skip to contents

Convert the object x to an xml_document object using the function as_xml() and write it to a file. If no method as_xml() exists for the object |classx, an error will be raised.

Usage

write_xml(x, file, output = "metadata", ...)

Arguments

x

object which will be converted to and saved as an xml file.

file

Path to file or connection to write to.

output

specifies the content and format of the exported xml. see as_xml for details

...

additional parameter for the conversion function as_xml

Examples

write_xml(dmdScheme(), file = tempfile())
#> [1] "/tmp/RtmpEEeCUq/file37f62c14ec37"