Rev 8200 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{names.XMLNode}\alias{names.XMLNode}\title{Get the names of an XML nodes children.}\description{This is a convenient way to obtain the XML tag nameof each of the sub-nodes of a given\code{XMLNode} object.}\usage{\method{names}{XMLNode}(x)}\arguments{\item{x}{the \code{XMLNode} whose sub-node tag names are beingqueried.}}\value{A character vector returning thetag names of the sub-nodes of the given\code{XMLNode} argument.}\references{\url{https://www.w3.org/XML/}, \url{http://www.jclark.com/xml/},\url{https://www.omegahat.net} }\author{ Duncan Temple Lang }\note{ This overrides the regular names methodwhich would display the names of the internalfields of an \code{XMLNode} object.Since these are intended to be invisible andqueried via the accessor methods (\code{\link{xmlName}},\code{\link{xmlAttrs}}, etc.), this should notbe a problem. If you really need the namesof the fields, use \code{names(unclass(x))}.}\seealso{\code{\link{xmlApply}}\code{\link{xmlSApply}}}\examples{doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML"))names(xmlRoot(doc))r <- xmlRoot(doc)r[names(r) == "variables"]}\keyword{file}