Generic function to convert an object to xml
Source:R/as_xml.R
, R/as_xml.dmdSchemeData.R
, R/as_xml.dmdSchemeSet.R
as_xml.Rd
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", ...)
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
x <- as_xml( dmdScheme_example() )
x
#> {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 \code{xml_document} object