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
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
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
3 matches
Mail list logo