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

[R] XML getNodeSet syntax for PUBMED XML export

2010-09-08 Thread Rob James
I am looking for the syntax to capture XML tags marked with /DescriptorName MajorTopicYN="Y"/ , but the combination of the internal space (between "Name" and "Major" and the embedded quote marks are defeating me. I can get all the "DescriptorName" tags, but these include both MajroTopicYN