xmlSize(obj)
length
of the value from xmlChildren
.xmlChildren
,
xmlAttrs
,
xmlName
,
xmlTreeParse
fileName <- system.file("exampleData", "mtcars.xml", package="XML")
doc <- xmlTreeParse(fileName)
xmlSize(doc)
xmlSize(doc$doc$children[["dataset"]][["variables"]])
Run the code above in your browser using DataLab