Ciao, dal seguente xml:
tramite array php: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>
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
ecodice HTML:<td colspan="2">Processore </td>
cosa sbaglio?codice HTML:<td colspan="2">Memoria </td>
qualcuno potrebbe indicarmi anche un sito una guida sull'argomento?
grazie mille![]()


Rispondi quotando


.
