I'm a beginner. I'm learning XPath.
This is the sample structure:
<AAA>
<BBB/>
<CCC/>
<DDD/>
<AAA/>
<BBB/>
</DDD>
<div class="some">
<AAA/>
<BBB/>
<div id="special">
<AAA/>
</div>
<div style="clear: both;"/>
<hr/>
<div> text </div>
<div> text </div>
<div> text </div>
<hr/>
<div> text </div>
<div> text </div>
<DDD/>
<EEE/>
</div>
</AAA>
What XPath syntax should I write to detect:
1) Select the next six DIV elements after <div id="special">
?
2) Select any of the next six elements after <div id="special">
?
My incomplete (failed) trials: //div[@id='special'] + div + div + div + div + div + div