I have multiple values in attribute @ana in a xml-tei file:
<!-- xml-tei -->
<w type="verb" ana="#ŠNS01 #destruction #action #ANT" />
In R, I want to count some of the @ana values:
#in R
nodes=getNodeSet(doc,"//ns:w[contains(@type,'verb') and contains(@ana,'#action') and contains(@ana, '#destruction')]", ns)
total_actionDes <- length(nodes)
total_actionDes
But it also count @ana="ANT" and I don't want to.
How to exclude this value from getNodesSet?
In advance, thank you.