Rev 8141 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{length.XMLNode}\alias{length.XMLNode}\title{Determine the number of children in an XMLNode object.}\description{This function is a simple way to compute the numberof sub-nodes (or children) an \code{XMLNode} objectpossesses.It is provided as a convenient form of calling the\code{\link{xmlSize}} function.}\usage{\method{length}{XMLNode}(x)}\arguments{\item{x}{the \code{XMLNode} object whose length is to be queried.}}\value{An integer giving the number of sub-nodesof this node.}\references{\url{https://www.w3.org/XML/}, \url{http://www.jclark.com/xml/},\url{https://www.omegahat.net} }\author{ Duncan Temple Lang }\seealso{\code{\link{xmlSize}}\code{\link{xmlChildren}}}\examples{doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML"))r <- xmlRoot(doc, skip=TRUE)length(r)# get the last entryr[[length(r)]]}\keyword{file}