2

I have following elements:

<div>
  <table/>
  <div/>
  <table/>
  <div/>
  <table/> <!--I need to get only this one-->
  <table/>
  <div/>
</div>

So how to get //div/table with next element table?

Kovpaev Alexey
  • 1,725
  • 6
  • 19
  • 38

1 Answers1

2

Use //div/table[following-sibling::*[1][self::table]].

Martin Honnen
  • 160,499
  • 6
  • 90
  • 110