title: Parsing XML tags with PHP
body: <p>I have an XML document that looks something like:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' standalone='yes' ?&gt;
  &lt;smses count="1992"&gt;
    &lt;sms protocol="0" address="5558675309" date="1309444177931" type="1" subject="null" body="text message" toa="0" sc_toa="0" service_center="null" read="1" status="-1" locked="0" /&gt;
  &lt;/smses&gt;
  </code></pre>
  
  <p>I want to extract the address, date, and body for each <code>&lt;sms&gt;</code> line, and there's about 8000 lines. I'm not sure the best way to go about this, so if anyone could point me in the right direction, I'd appreciate it. Don't really need specific code, just direction. I'm stumped.</p>