c2attr > 5すべての b where onを選択したいと思いますc2 = text2。Xpath で、私は次のように書きました。
a/b[c2 = text2 and c2attr >5]
しかし、c2=text2, c2attr >5. それは私に持っているすべてのc2要素を与えましたc2attr >5。
bを正しく選択するには、どのように記述すればよいですか?
例えば:
<a>
<b>
<c1>c1 text</c1>
<c2 c2attr="3">text1</c2>
<c2 c2attr="8">tex2</c2>
<c2 c2attr="50">text3</c2>
</b>
<b>
<c1>c1 text</b1>
<c2 c2attr="1">text4</c2>
<c2 c2attr="6">tex2</c2>
<c2 c2attr="10">text1</c2>
</b>
</a>
どうもありがとうございました!