as_xml: Generic function to convert an object to xml

View source: R/as_xml.R

as_xmlR Documentation

Generic function to convert an object to xml

Description

Generic function to convert an object to xml

Usage

as_xml(x, output = "metadata", ...)

## S3 method for class 'dmdSchemeData'
as_xml(x, output = "metadata", ...)

## S3 method for class 'dmdSchemeSet'
as_xml(x, output = "metadata", ...)

Arguments

x

object to be converted.

output

specifies the content and format of the exported xml.

"metadata" :

export of the metadata only with no format attributes

"complete" :

export tof the complete sheme, i.e. "metadata" plus the scheme definition. This is a self contained format which contains all attributes.

...

additional arguments for methods

Value

an xml_document object

Examples


x <- as_xml( dmdScheme_example() )
x

## returns \code{xml_document} object



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