Answer by shhhhimhuntingrabbits for R programming XML: extract specific node
doc <- xmlTreeParse(fileName)doc <- xmlParse(fileName) xpathSApply(doc,"//*/record[@id=\"Fiat 128\"]",xmlValue)xpathSApply(doc,"//*/record[@id=\"Honda Civic\"]",xmlValue)use xmlParse which is...
View ArticleR programming XML: extract specific node
I was wondering how to get to a specific node using R's XML package. Here is an example using R's built in data set, mtcars. fileName <- system.file("exampleData", "mtcars.xml", package="XML") doc...
View Article