Generic function to convert an object to a list containing xml(s)
Source:R/as_xml_list.R
, R/as_xml_list.dmdSchemeSet.R
as_xml_list.Rd
Generic function to convert an object to a list containing xml(s)
Usage
as_xml_list(x, output = "metadata", ...)
# S3 method for 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
#> [[1]]
#> {xml_document}
#> <dmdScheme fileName="dmdScheme.xlsx" dmdSchemeName="dmdScheme" dmdSchemeVersion="0.9.9" propertyName="dmdScheme" output="metadata">
#> [1] <MdBibliometricList>\n <MdBibliometric>\n <uploadType>Dataset</upload ...
#> [2] <MdAuthorsList>\n <MdAuthors authorID="1">\n <authorID>1</authorID>\n ...
#> [3] <ExperimentList>\n <Experiment>\n <name>ASR-expt1</name>\n <temper ...
#> [4] <GenusList>\n <Genus speciesID="tt_1">\n <speciesID>tt_1</speciesID>\ ...
#> [5] <TreatmentsList>\n <Treatments treatmentID="Lid_treatment">\n <treatm ...
#> [6] <MeasurementList>\n <Measurement measurementID="oxygen concentration">\n ...
#> [7] <DataExtractionList>\n <DataExtraction dataExtractionID="Mol_Analy_pipel ...
#> [8] <DataFileMetaDataList>\n <DataFileMetaData>\n <dataFileName>dissolved ...
#>
## returns a \code{list()} with one \code{xml_document} object