Determine the number of children in an XMLNode object.

DESCRIPTION:

This function is a simple way to compute the number of sub-nodes (or children) an XMLNode object possesses. It is provided as a convenient form of calling the function.

USAGE:

 length.XMLNode(x)

ARGUMENTS:

x
the XMLNode object whose length is to be queried.

VALUE:

An integer giving the number of sub-nodes of this node.

AUTHOR(S):

Duncan Temple Lang

REFERENCES:

http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org

SEE ALSO:

EXAMPLES:

 doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML"))
  r <- xmlRoot(doc, skip=TRUE)
  length(r)
    # get the last entry
  r[[length(r)]]