Note that there are some explanatory texts on larger screens.

plurals
  1. POxpath - following-sibling question
    primarykey
    data
    text
    <p>basic question that i'm missing something.</p> <p>have the text html</p> <pre><code> &lt;tr &gt;&lt;td class="CourseTitle" &gt;foo &lt;/td&gt;&lt;/tr&gt; &lt;tr "&gt; &lt;th &gt;Code&lt;/th&gt;&lt;th &gt;Type&lt;/th&gt; &lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;40001&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;40002&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;40003&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;40004&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr class="blue-bar" bgcolor="navy"&gt;&lt;td colspan="16"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr "&gt;&lt;td class="CourseTitle" &gt;asaa &lt;/td&gt; &lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;4sd0003&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; &lt;tr valign="top" bgcolor="#FFFFCC"&gt;&lt;td "&gt;400sd04&lt;/td&gt;&lt;td "&gt;40000&lt;/td&gt;&lt;/tr&gt; </code></pre> <p>i'm trying to figure out a way to get all the subsequent tr/td following the "tr" that has a "td" with a @class="CourseTitle"</p> <p>something like:</p> <pre><code>/html/body/div[5]/table/tbody/tr[3]/td[@class="CourseTitle"]/../following-sibling::tr//td[@class="CourseTitle"] </code></pre> <p>only gets a list of all the trs with the matching td/@class which isn'twhat I'm going for.</p> <p>I've been trying to figure out how you get the siblings, when a child of the sibling matches the condition..</p> <p>I'm testing this in python, using the libxml libs.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload