inst/examples/mi1.R

system.time(z <- xmlTreeParse("~/mi1.xml", useInternal = TRUE))

nn = getNodeSet(z, "/*/molecule/name")
length(nn)

ids = sapply(nn,function(x) xmlValue(x[[1]]))

Try the XML package in your browser

Any scripts or data that you put into this service are public.

XML documentation built on June 25, 2024, 5:06 p.m.