要素の特定の修飾子ノードの連結値を含むが、他のノードを無視する文字列値を返すXPath式形式を提案できますか?
<div>
This text node should be returned.
<em>And the value of this element.</em>
And this.
<p>But this paragraph element should be ignored.</p>
</div>
戻り値は単一の文字列である必要があります。
This text node should be returned. And the value of this element. And this.
これは単一のXPath式で可能ですか?
ありがとう。