M
Marek
Hello,
I need to select all descendant text nodes and br elements using a
xpath query. So this xml:
<a>
<b>text a</b> text b<br />
<c>text c</c> text d<br />
</a>
results in this node list:
1. text a
2. text b
3. <br>
4. text c
5. text d
6. <br>
I tried a/descendant::*[text() or self::br] but that got me some weird
results.
Thanks
I need to select all descendant text nodes and br elements using a
xpath query. So this xml:
<a>
<b>text a</b> text b<br />
<c>text c</c> text d<br />
</a>
results in this node list:
1. text a
2. text b
3. <br>
4. text c
5. text d
6. <br>
I tried a/descendant::*[text() or self::br] but that got me some weird
results.
Thanks