
Last chance! 50% off unlimited learning
Sale ends in
XMLNode
object
possesses.
It is provided as a convenient form of calling the
xmlSize
function.length.XMLNode(x)
XMLNode
object whose length is to be queried.xmlSize
xmlChildren
doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML"))
r <- xmlRoot(doc, skip=T)
length(r)
# get the last entry
r[[length(r)]]
Run the code above in your browser using DataLab