xmlChildren {XML}R Documentation

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.

Author(s)

Duncan Temple Lang

References

http://www.w3.org/XML

See Also

xmlChildren,xmlSize, xmlTreeParse

Examples

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

[Package XML version 0.97-0 Index]