myTests/xpathMartin.R

fl = system.file("exampleData", "mtcars.xml", package="XML")
xml <- xmlTreeParse(fl, useInternal=TRUE)

node <- xpathApply(xml, "/*/*")
xpathApply(node[[1]], "/*/*")
xpathApply(node[[1]], "./*/text()|./*/*")
omegahat/XML documentation built on Jan. 17, 2024, 6:47 p.m.