powered by
This is a convenient way to obtain the XML tag name of each of the sub-nodes of a given XMLNode object.
XMLNode
# S3 method for XMLNode names(x)
the XMLNode whose sub-node tag names are being queried.
A character vector returning the tag names of the sub-nodes of the given XMLNode argument.
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.net
xmlApply xmlSApply
xmlApply
xmlSApply
# NOT RUN { doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML")) names(xmlRoot(doc)) r <- xmlRoot(doc) r[names(r) == "variables"] # }
Run the code above in your browser using DataLab