Re: [R] XML getNodeSet

2014-04-19 Thread Timothy W. Cook
SOLVED: (mostly) So I'll post this here in case it helps someone in the future. fileName <- '001.xml' doc <- xmlTreeParse(fileName, handlers=list("comment"=function(x,...){NULL}), asTree = TRUE) root <- xmlRoot(doc) Connected_To <- xmlToDataFrame(getNodeSet(root, '//ccd:el-e3657392-8e26-42a4-a9

Re: [R] XML getNodeSet

2014-04-17 Thread Timothy W. Cook
Apologies, I forgot to add details: platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 3 minor 0.1 year 2013 month 05 day16 svn rev62743 language R version.str

Re: [R] XML getNodeSet syntax for PUBMED XML export

2010-09-08 Thread Duncan Temple Lang
Hi Rob doc = xmlParse("url for document") dn = getNodeSet(doc, "//descriptorna...@majortopic = 'Y']") will do what you want, I believe. XPath - a language for expressing such queries - is quite simple and based on a few simple primitive concepts from which one can create complex compound q