Applies a function to each of the children of an XMLNode
xmlApply(X, FUN, ...) ## S3 method for class 'XMLNode' xmlApply(X, FUN, ...) ## S3 method for class 'XMLDocument' xmlApply(X, FUN, ...) ## S3 method for class 'XMLDocumentContent' xmlApply(X, FUN, ...) xmlSApply(X, FUN, ...) ## S3 method for class 'XMLNode' xmlSApply(X, FUN, ...) ## S3 method for class 'XMLDocument' xmlSApply(X, FUN, ...)
X |
the |
FUN |
the function to apply to each child node. This is passed
directly to the relevant |
... |
additional arguments to be given to each invocation of
|
Duncan Temple Lang
doc <- xmlTreeParse(system.file("exampleData", "mtcars.xml", package="XML")) r <- xmlRoot(doc) xmlSApply(r[[2]], xmlName) xmlApply(r[[2]], xmlAttrs) xmlSApply(r[[2]], xmlSize)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.