Learn R Programming

XML (version 0.7-3)

xmlChildren: Gets the sub-nodes within an XMLNode object.

Description

This returns a list of XMLNode objects within an XMLNode object.

Usage

xmlChildren(x)

Arguments

x
an object of class XMLNode.

Value

  • A list whose elements are sub-nodes of the user-specified XMLNode. These are also of class XMLNode.

References

http://www.w3.org/XML

See Also

xmlChildren,xmlSize, xmlTreeParse

Examples

Run this code
fileName <- system.file("exampleData", "mtcars.xml", package="XML")
  doc <- xmlTreeParse(fileName)
  names(xmlChildren(doc$doc$children[["dataset"]]))

Run the code above in your browser using DataLab