Ciao, dal seguente xml:
codice HTML:
<table class="corpo_scheda_prodotto_icecat" width="100%" cellspacing="2" cellpadding="2">
<tbody>
<tr class="titolo_sezione_scheda_prodotto_icecat">
<td colspan="2">Processore
</td>
</tr>
<tr>
<td class="cella_titolo_scheda_prodotto_icecat_stile1">Famiglia processore
</td>
<td class="cella_contenuto_scheda_prodotto_icecat_stile1">Intel® Core(TM) i9 serie X
</td>
</tr>
<tr>
<td class="cella_titolo_scheda_prodotto_icecat_stile2">Produttore processore
</td>
<td class="cella_contenuto_scheda_prodotto_icecat_stile2">Intel
</td>
</tr>
<tr class="titolo_sezione_scheda_prodotto_icecat">
<td colspan="2">Memoria
</td>
</tr>
</tbody>
</table>
tramite array php:
Codice PHP:
array(
'name' => ".//table[@class='corpo_scheda_prodotto_icecat']//tbody//tr[position() > 1]//td[position() = 1]",
'value' => ".//table[@class='corpo_scheda_prodotto_icecat']//tbody//tr[position() > 1]//td[position() = 2]",
),
devo escludere i due tag
codice HTML:
<td colspan="2">Processore
</td>
e
codice HTML:
<td colspan="2">Memoria
</td>
cosa sbaglio?
qualcuno potrebbe indicarmi anche un sito una guida sull'argomento?
grazie mille