title: Getting XML attributes with PHP
body: <p>Hey guys, I have looked all around for help but found nothing sadly. I am trying to use PHP to grab the contents of an XML file and pull the data from an attribute. I have checked other tutorials and tried but none worked.</p>
  
  <p>Here is the XML file:</p>
  
  <pre><code>&lt;eveapi version="2"&gt;
    &lt;currentTime&gt;2011-04-03 03:55:59&lt;/currentTime&gt;
    &lt;result&gt;
      &lt;rowset name="notifications" key="notificationID" columns="notificationID,typeID,senderID,sentDate,read"&gt;
        &lt;row notificationID="339040500" typeID="75" senderID="1000137" sentDate="2011-04-03 03:53:00" read="0" /&gt;
      &lt;/rowset&gt;
    &lt;/result&gt;
    &lt;cachedUntil&gt;2011-04-03 04:25:59&lt;/cachedUntil&gt;
  &lt;/eveapi&gt;
  </code></pre>
  
  <p>I am trying to pull the data from 'typeID' &amp; 'sentDate'. Also, this XML file may containt multiple  tags.</p>
  
  <p>All help is welcomed, thanks!</p>