Created
September 30, 2012 16:43
-
-
Save nanxstats/3807535 to your computer and use it in GitHub Desktop.
Simple XML Parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(XML) | |
doc = xmlParse('score.xml', | |
useInternal = TRUE, encoding = 'utf-8') | |
tab = data.frame(name = sapply(getNodeSet(doc, path = "//ROW//XM"), xmlValue), | |
mail = sapply(getNodeSet(doc, path = "//ROW//DZYX"), xmlValue), | |
phone = sapply(getNodeSet(doc, path = "//ROW//LXDH"), xmlValue)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment