title: Parse XML link with PHP
body: <p>I have an XML feed that looks something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/2BRDR.png" alt="xml"></p>
  
  <p>I can parse the title easily enough using simpleXML:</p>
  
  <pre><code>$pictureBoxXMLFeed = simplexml_load_file('https://www.picturebox.tv/xml/feeds/FindAnyFilm/FindAnyFilm.xml');;
  
  echo $pictureBoxXMLFeed-&gt;entry[1]-&gt;title;
  
  foreach($pictureBoxXMLFeed-&gt;entry as $value){
  
      echo $value-&gt;title;
      echo '&lt;br/&gt;';
  
  }
  </code></pre>
  
  <p>But I need to grab the link element in the feed which looks something like this:</p>
  
  <pre><code>&lt;link href="http://www.picturebox.tv/watchnow?id=UKIC30" rel="alternate"/&gt;
  </code></pre>
  
  <p>FYI, this doesn't work:</p>
  
  <p>echo $value->link;</p>
  
  <p>Thanks for any help...</p>