Learn R Programming

datapack (version 1.4.2)

parseSystemMetadata: Parse an external XML document and populate a SystemMetadata object with the parsed data

Description

Parse an XML representation of system metadata, and set the object slots of a SystemMetadata object the with obtained values.

Usage

parseSystemMetadata(x, ...)

# S4 method for SystemMetadata parseSystemMetadata(x, xml, ...)

Value

the SystemMetadata object representing an object

Arguments

x

The SystemMetadata object

...

Additional arguments passed to other functions or methods

xml

The XML representation of the capabilities, as an XMLInternalElementNode

See Also

SystemMetadata-class

Examples

Run this code
library(XML)
doc <- xmlParseDoc(system.file("testfiles/sysmeta.xml", package="datapack"), asText=FALSE)
sysmeta <- new("SystemMetadata")
sysmeta <- parseSystemMetadata(sysmeta, xmlRoot(doc))

Run the code above in your browser using DataLab