Learn R Programming

dmdScheme (version 1.3.5)

as_xml: 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 dmdSchemeData as_xml(x, output = "metadata", ...)

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

Value

an xml_document object

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

Examples

Run this code

x <- as_xml( dmdScheme_example() )
x

## returns \code{xml_document} object


Run the code above in your browser using DataLab