I need to select all n nodes by containing the text "text to match"
<n>
<n>
<s>text to match</s>
</n>
<n>
<s>ignore</s>
</n>
<n>
<s>text to match</s>
</n>
<n>
text to match
</n>
</n>
I tried *[contains(string(), "text to match")] but that selects the outer-most n as well
I would like to get only the nearest possibly n.
Any hints?
TIA!