I'd like to target in XPath (to be used in xmlImport for Google Spreadsheets) the element that in CSS would be .forum-table tr:nth-of-type(1) .forum-number-topics
:
<table class="forum-table forum-table-forums">
<thead class="forum-header">
<tr>
<th class="forum-icon"> </th>
<th class="forum-name">Forum</th>
<th class="forum-topics">Topics</th>
<th class="forum-posts">Posts</th>
<th class="forum-last-post">Last post</th>
</tr>
</thead>
<tbody id="forum-table-12892-content">
<tr class="forum-row even container-12897-child" id="forum-12897">
<td class="forum-list-icon forum-list-icon-default"> <span class="forum-list-icon-wrapper"><span>No new</span></span>
</td>
<td colspan="1" class="forum-details">
<div class="forum-name"> <a href="/forums/settimana-1-1">Settimana 1</a>
</div>
</td>
<td class="forum-number-topics">
<div class="forum-number-topics">20</div>
</td>
<td class="forum-number-posts">171</td>
<td class="forum-last-reply">n/a</td>
</tr>
<tr class="forum-row odd container-13043-child" id="forum-13043">
<td class="forum-list-icon forum-list-icon-default"> <span class="forum-list-icon-wrapper"><span>No new</span></span>
</td>
<td colspan="1" class="forum-details">
<div class="forum-name"> <a href="/forums/settimana-2-0">Settimana 2</a>
</div>
</td>
<td class="forum-number-topics">
<div class="forum-number-topics">21</div>
</td>
<td class="forum-number-posts">143</td>
<td class="forum-last-reply">n/a</td>
</tr>
<tr class="forum-row even container-13107-child" id="forum-13107">
<td class="forum-list-icon forum-list-icon-default"> <span class="forum-list-icon-wrapper"><span>No new</span></span>
</td>
<td colspan="1" class="forum-details">
<div class="forum-name"> <a href="/forums/settimana-3-0">Settimana 3</a>
</div>
</td>
<td class="forum-number-topics">
<div class="forum-number-topics">20</div>
</td>
<td class="forum-number-posts">91</td>
<td class="forum-last-reply">n/a</td>
</tr>
</tbody>
</table>
I specified tr:nth-of-type(1)
because I need the same syntax in Xpath (with numeric entity).