What is the way to load more than one XML (different sources) and show a mixed content?
My Code is now loading only one XML now
<?php
$mobile = simplexml_load_file('mobile.xml');
$electronics = simplexml_load_file('electronics.xml');
foreach($mobile->product as $product)
{
echo '<div class="col-md-3">'."\n";
echo '<h4 class="img-responsive"><a href="'.$product->url.'">'.$product->name.'</a></h4>'."\n";
echo '<p><a href="'.$product->url.'"><img src="'.$product->image->large.'" class="img-responsive" /></a></p>'."\n";
echo '<p>'.$product->Price.'</p>'."\n";
echo '</div><!--end painting_record-->'."\n";
}
foreach($electronics->product as $product)
{
echo '<div class="col-md-3">'."\n";
echo '<h4 class="img-responsive"><a href="'.$product->url.'">'.$product->name.'</a></h4>'."\n";
echo '<p><a href="'.$product->url.'"><img src="'.$product->image->large.'" class="img-responsive" /></a></p>'."\n";
echo '<p>'.$product->Price.'</p>'."\n";
echo '</div><!--end painting_record-->'."\n";
}
?>
Thanks