Hello. I've been trying to find a workaround on the following problem:

given the following xml

HTML Code:

<root>
<lemma>
<terms>
<en>en_term1</en>
<gr>gr_term1</gr>
</terms>
</lemma>
<lemma>
<terms>
<en>en_term2</en>
<gr>tgr_term1a</gr>
<gr>gr_term2a</gr>
</terms>
</lemma>
<lemma>
<terms>
<en>en_term3</en>
<gr>gr_term1b</gr>
</terms>
</lemma>
</root>

i run the following xpath:

**//lemma[starts-with(terms/gr,'gr')]**
which returns the first and last <lemma> but not the middle one which contains a <gr> that starts with 'gr'. So my question is how can i "search" all <gr> elements within a <terms>?

Thanks in advance