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.
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