as_xml_list: Generic function to convert an object to a list containing...

View source: R/as_xml_list.R

as_xml_listR Documentation

Generic function to convert an object to a list containing xml(s)

Description

Generic function to convert an object to a list containing xml(s)

Usage

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

## S3 method for class 'dmdSchemeSet'
as_xml_list(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

a list() where each element is xml_document object

Examples


x <- as_xml_list( dmdScheme_example() )
x

## returns a \code{list()} with one \code{xml_document} object



Exp-Micro-Ecol-Hub/dmdScheme documentation built on Aug. 31, 2022, 3:17 p.m.