title: Can PHP SimpleXML be used for this task?
body: <p>I'm looking to run some kind of loop on some optional XML data.</p>
  
  <p>Nodes would potentially look like this:</p>
  
  <pre><code>&lt;link1&gt;
   &lt;url&gt;http://www.bleh.com&lt;/url&gt;
   &lt;text&gt;Click here&lt;/text&gt;
  &lt;/link1&gt;
  &lt;link2&gt;
   &lt;url&gt;bleh.com&lt;/url&gt;
   &lt;text&gt;Click here&lt;/text&gt;
  &lt;/link2&gt;
  </code></pre>
  
  <p>What would be the best method to determine if these nodes exist and parse them accordingly?</p>