Parse an external XML document and populate a SystemMetadata object with the parsed data
Source:R/SystemMetadata.R
parseSystemMetadata.Rd
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 class 'SystemMetadata'
parseSystemMetadata(x, xml, ...)
Examples
library(XML)
doc <- xmlParseDoc(system.file("testfiles/sysmeta.xml", package="datapack"), asText=FALSE)
sysmeta <- new("SystemMetadata")
sysmeta <- parseSystemMetadata(sysmeta, xmlRoot(doc))