
Last chance! 50% off unlimited learning
Sale ends in
xmlNamespace(xmlRoot(doc))
.The class of the result is
is an S3-style object of class XMLNamespace
.
xmlNamespace(x)
xmlName
xmlChildren
xmlAttrs
xmlValue
doc <- xmlTreeParse(system.file("exampleData", "job.xml", package="XML"))
xmlNamespace(xmlRoot(doc))
xmlNamespace(xmlRoot(doc)[[1]][[1]])
node <- xmlNode("arg", xmlNode("name", "foo"), namespace="R")
xmlNamespace(node)
Run the code above in your browser using DataLab