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 = "Y" and "N" variants. Any suggestions?

Thanks in advance.

Prototype text from PUBMED

<MeshHeadingList>
<MeshHeading>
<DescriptorName MajorTopicYN="Y">Antibodies, Monoclonal</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N">Blood Platelets</DescriptorName>
<QualifierName MajorTopicYN="N">immunology</QualifierName>
<QualifierName MajorTopicYN="Y">physiology</QualifierName>
<QualifierName MajorTopicYN="N">ultrastructure</QualifierName>
</MeshHeading>
</MeshHeadingList>



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to