Salve a tutti, vi pongo il mi quesito:
Tramite comando curl ricevo un XML che si struttura così:
<HotelList>
<HotelSummary id=848484>
<hotel>prova</hotel>
<address>via bho</address>
<thumbNailUrl>/hotels/1000000/530000/526200/526198/526198_38_t.jpg</thumbNailUrl>
</HotelSummary>
<HotelSummary id=808080>
<hotel>prova1</hotel>
<address>via bho1</address>
<thumbNailUrl>/hotels/1000000/530000/55800/526198/5285741785.jpg</thumbNailUrl>
</HotelSummary>
</HotelList>
Ora tramite foreach come faccio a cambiare ogni <thumbNailUrl> del tipo:
<thumbNailUrl>/hotels/1000000/530000/526200/526198/526198_38_t.jpg</thumbNailUrl>
<thumbNailUrl>/hotels/1000000/530000/55800/526198/5285741785.jpg</thumbNailUrl>
In <img src:$server.$thumbNailUrl>
Ho una parte di link dall'XML e devo far uscire l'immagine, questo lo devo fare per tutta la lista però.
Aspetto vostre illuminazioni in merito.