
Last chance! 50% off unlimited learning
Sale ends in
xmlAttrs(node)
XMLNode
object
whose attributes are to be extracted.
xmlChildren
, xmlSize
,
xmlName
fileName <- system.file("exampleData", "mtcars.xml", package="XML")
doc <- xmlTreeParse(fileName)
xmlAttrs(doc$doc$children[["dataset"]])
xmlAttrs(doc$doc$children[["dataset"]][["variables"]])
Run the code above in your browser using DataLab