title: php read xml file
body: <p>I am trying to read an XML file I have been given using php. I basically want to write out the different elements of the file, but I am really struggling with how to do this.</p>
  
  <p><a href="https://www.bwin.com/partner/xml/query.aspx?source=events&amp;lid=1&amp;xpath=/ROOT/EVENTS/E%5B@LID=46%20and%20@RID=14%20and%20@SID=4%5D" rel="nofollow">Here's some sample XML input.</a></p>
  
  <p>I want to be able to write out the following:</p>
  
  <pre><code>E DBID - N
  E DBID - RDBID - N
  E DBID - RDBID - O
  </code></pre>
  
  <p>I am really struggling to figure this one out, any help would be gratefully appreciated.</p>