Hi there,
I have an XML file with the following structure,
<item>
<name></name>
<description></description>
<Images>
<img src="" alt="" width="" height="" />
<img src="" alt="" width="" height="" />
<img src="" alt="" width="" height="" />
<img src="" alt="" width="" height="" />
</Images>
</item>
their are about 100 items but when i loop through each item and echo them onto the screen I only one to display one of the images that is listed..
Can anyone help me with the code to display just one?
I have tried:
$item->Images
$item->Images->img[1]->attributes()->src
but this does not seem to display anything and I know that using children() will just show a count of the children..
Im pulling my hair out and it seems like such a small problem
Thanks,
Chris