
The assignment operator (xmlChildren<-
) sets the
children of the node to the given value and returns the
updated/modified node. No checking is currently done
on the type and values of the right hand side. This allows
the children of the node to be arbitrary R objects. This can
be useful but means that one cannot rely on any structure in a node
being present..
xmlChildren(x, addNames= TRUE, ...)
omitTypes
for an XMLInternalNode.xmlChildren
,xmlSize
,
xmlTreeParse
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