title: parsing in an external xml feed into php
body: <p>Im really new to php and im trying to load in data from an external xml feed into a php document, then use that data to generate an output. </p>
  
  <p>The xml feed im using is - <a href="http://whdn.williamhill.com/pricefeed/openbet_cdn?action=template&amp;template=getHierarchyByMarketType&amp;classId=1&amp;marketSort=--&amp;filterBIR=N" rel="nofollow">http://whdn.williamhill.com/pricefeed/openbet_cdn?action=template&amp;template=getHierarchyByMarketType&amp;classId=1&amp;marketSort=--&amp;filterBIR=N</a> </p>
  
  <p>What im trying to do is generate a list of 'markets' and there names, so as the xml feed stands at the time of writing the first 3 items in the list would be :</p>
  
  <ul>
  <li>Scottish Division 1 - Outright - Outright</li>
  <li>Dumbarton v Hamilton - 1st Half Result/2nd Half Result</li>
  <li>Dumbarton v Hamilton - Match Handicaps</li>
  </ul>
  
  <p>at the moment im trying to use the code bellow to achieve this, but im getting nowhere quickly with it, any ideas on what im doing wrong here ?</p>
  
  <p><em>just a further piece of background, im using php 5.4.4, am i right in thinking that simplexml comes already pre installed.. so i dont need to add any thing additional here ?</em></p>
  
  <pre><code>&lt;?php 
  
  $xml = simplexml_load_file('http://whdn.williamhill.com/pricefeed/openbet_cdn?action=template&amp;template=getHierarchyByMarketType&amp;classId=1&amp;marketSort=--&amp;filterBIR=N');
  
  foreach ($xml-&gt;market as $event) {
    echo $event;
  }
  
  ?&gt;
  </code></pre>