Try this as your foreach loop
<?php
echo "<table>";
foreach($xml->children() as $child)
{
echo "<tr>";
echo "<td>".$child->attributes()->title->getname()."</td>";
echo "<td>".$child->attributes()->title."</td>";
echo "<td>".$child->name->getname()."</td>";
echo "<td>".$child->name."</td>";
echo "<td>".$child->price->getname()."</td>";
echo "<td>".$child->price."</td>";
echo "</tr>";
}
echo "</table>";