$xml = simplexml_load_file('http://cachepricefeeds.williamhill.com/openbet_cdn?action=template&template=getHierarchyByMarketType&classId=1&marketSort=--&filterBIR=Y');
$x = $xml->response->williamhill->class->type;
foreach ($x as $p=>$t): // get the type for drill down to market
?>
<div id='feedhead'><? echo $t['name']; ?></div>
<?
foreach ($t as $m): // get the attributes for the market
//-------- GET THE DATES IN ORDER
$d = explode('-', $m['date']);
$date = $d[2].'/'.$d[1].'/'.$d[0];
echo $m['url'];
endforeach;
endforeach;