I have the following XML:
<offer categoryId="3588" id="154394195459775522">
<offerName>
CAMISETA DROP DEAD PRODUCTION – MASCULINA VERDE ESCURO
</offerName>
<links>
<link url="http://links.lomadee.com/ls/d25zZjsyRHd2U1I3MzsyODY4NjE3OTswOzU3OTg7MDs1NzE0O0JSOzM7aHR0cCUzQSUyRiUyRnd3dy5jZW50YXVyby5jb20uYnIlMkZwcm9tb2NhbyUzRm5leHRVcmwlM0R0LXNoaXJ0LWRyb3AtZGVhZC1wcm9kdWN0aW9uLTcwMjE0MDE4LTgxODE2OC5odG1sJTI2dHlwZSUzRHBkcCUyNmlkJTNEODE4MTY4JTI2dXRtX3NvdXJjZSUzRExvbWFkZWUlMjZ1dG1fbWVkaXVtJTNEeG1sJTI2dXRtX2NhbXBhaWduJTNETG9tYWRlZS1Ta2F0ZS1DYW1pc2V0YS0tODE4MTY4LTg2JTI2b3JpZ2VtJTNETG9tYWRlZTswOzA-.html" type="offer"/>
</links>
<thumbnail url="http://images.centauro.com.br/250x250/81816886.jpg"/>
<price>
<currency abbreviation="BRL"/>
<value>49.9</value>
<parcel>
<value>24.95</value>
<number>2</number>
<interest>0.0</interest>
</parcel>
</price>
<seller id="84" isTrustedStore="false" pagamentoDigital="false" advertiserId="5714" oneClickBuy="false" oneClickBuyValue="0" cpcDifferentiated="false">
<sellerName>Centauro</sellerName>
<thumbnail url="https://wwws.lomadee.com/programas/BR/5714/logo_185x140.png"/>
<links>
<link url="http://www.centauro.com.br" type="seller"/>
</links>
</seller>
<startOffer>1969-12-31T21:00:00-03:00</startOffer>
<endOffer>8994-08-17T04:12:55.807-03:00</endOffer>
<category id="3588" isFinal="true">
<thumbnail url="http://imagem.buscape.com.br/bp5/categorias/3588.jpg"/>
<name>Shorts Esportivo</name>
</category>
</offer>
I called xml, via php as follows:
<?php
$xml = simplexml_load_file('arquivo.xml');
foreach ($xml as $details){
echo "<href='" . $details->links ."'>" . $details->offerName . "</a><br >";
echo $details->thumbnail . '<br >';
echo "R$" . $details->price->value . '<br >';
echo $details->price->parcel->value->number . '<br >';
echo $details->seller->sellerName . '<br >';
echo '<br >';
}
?>
The problem is that it is only showing the title, without the link. Shows the value, without the installment. Do not show the thumbnail.
Adding ----- >
Depending on the code you entered above, it always brings a blank result to the first line.