Description Usage Arguments Value Author(s) References See Also Examples
XML elements can contain other, nested sub-elements. This generic function determines the number of such elements within a specified node. It applies to an object of class XMLNode or XMLDocument.
1 | xmlSize(obj)
|
obj |
An an object of class XMLNode or XMLDocument. |
an integer which is the length
of the value from xmlChildren
.
Duncan Temple Lang
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org
xmlChildren
,
xmlAttrs
,
xmlName
,
xmlTreeParse
1 2 3 4 | fileName <- system.file("exampleData", "mtcars.xml", package="XML")
doc <- xmlTreeParse(fileName)
xmlSize(doc)
xmlSize(doc$doc$children[["dataset"]][["variables"]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.