xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<products xml:space="preserve">
<item>
...
<price>
<p1>5</p1>
<p2>10</p2>
</price>
</item>
</products>
now... i can output all the other elements (not shown) just fine with this:
$xmlFileName = 'products.xml';
$xml = simplexml_load_file($xmlFileName);
$i=0;
foreach ($xml->item as $item)
{
//...
}
?>
now, within THAT foreach i need to foreach through each price
all i can think of is this:
foreach ($item->price as $price)
{
}
but i cant think of how to call each underlying price