J
Jean-Gael GRICOURT
Here is my xpath problem:
<AAA>
<BBB>
<CCC>Bye</CCC>
<DDD>Mr Hyde</DDD>
</BBB>
<BBB>
<CCC>Hello</CCC>
<DDD>Mr Bean</DDD>
</BBB>
</AAA>
How do I select "Mr Bean" knowing that it is in a node located next to
<CCC>Hello</CCC> node ?
I tried those xpath expressions with no success so far:
/AAA/BBB/CCC['Hello']/parent::BBB/DDD
/AAA/BBB/CCC['Hello']/following-sibling:DD
I wish it returned "Mr Bean" instead of "Mr Hyde" ...
Any help will be much appreciated
<AAA>
<BBB>
<CCC>Bye</CCC>
<DDD>Mr Hyde</DDD>
</BBB>
<BBB>
<CCC>Hello</CCC>
<DDD>Mr Bean</DDD>
</BBB>
</AAA>
How do I select "Mr Bean" knowing that it is in a node located next to
<CCC>Hello</CCC> node ?
I tried those xpath expressions with no success so far:
/AAA/BBB/CCC['Hello']/parent::BBB/DDD
/AAA/BBB/CCC['Hello']/following-sibling:DD
I wish it returned "Mr Bean" instead of "Mr Hyde" ...
Any help will be much appreciated