// set the XML file name as a PHP string
$Mustanglistings = "http://api.oodle.com/api/v2/listings?key=B9FC7493700D&region=usa&category=vehicle/car&paid=yes&q=gt&format=xml&attributes=make_ford,model_mustang,has_photo_thumbnail" ;
// load the XML file
$xml = @simplexml_load_file($Mustanglistings) or die ("no file loaded") ;

foreach($xml->listings as $listing) {
foreach($listing->element as $element) {
foreach ($element->images as $images) {
$n=1;
foreach ($images->element as $images_element) {

while($n<=1)
{
echo "
url’ target=’_blank’> More info

“;
echo “


“;
}
}

?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>