## Write multiple metadata elements, including a new namespace:
website <- meta(href = "http://carlboettiger.info",
rel = "foaf:homepage") # meta can be link-style metadata
modified <- meta(property = "prism:modificationDate",
content = "2013-10-04")
nex <- add_meta(list(modified, website),
namespaces = c(foaf = "http://xmlns.com/foaf/0.1/"))
# prism prefix already included by default
## Add namespace "by hand" before adding meta:
nex <- add_namespaces(c(skos = "http://www.w3.org/2004/02/skos/core#"),
nexml = nex)
history <- meta(property = "skos:historyNote",
content = "Mapped from the bird.orders data in the ape package using RNeXML")
nex <- add_meta(history, nexml = nex)
Run the code above in your browser using DataLab