I'm using XPath similar to this: //*[ends-with(@id,'eoId')]/table/tbody/tr/td and it extracts table data as array. Eg. table of structure
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
that is rendered as
1 2 3 4
5 6 7 8
is extracted as array
1 2 3 4 5 6 7 8
array.
What I need as a result is the following format:
1 5 2 6 3 7 4 8
I can use XPATH 2.0. Thanks.
Aucun commentaire:
Enregistrer un commentaire