write_xml: Write write x as an XML file to disk

View source: R/write_xml.R

write_xmlR Documentation

Write write x as an XML file to disk

Description

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())


dmdScheme documentation built on Aug. 22, 2022, 9:06 a.m.