title: How do I extract the "href" attribute from an XML "link" tag using PHP?
body: <p>I am stumped as to how I can extract the "href" attribute from the "link" tag from this bit of XML using my PHP parsing script.  If it helps at all, I am trying to extract the URL of a particular post from a GetSatisfaction API feed.</p>
  
  <p>Here is an example a node from the XML file:</p>
  
  <pre><code>&lt;entry&gt;
    &lt;link rel="something" href="http://...url_I_need" type="text/html"/&gt;
  
    &lt;title type="html"&gt;...title here...&lt;/title&gt;
    &lt;content type="html"&gt;
    ...content here...
    &lt;/content&gt;
  &lt;/entry&gt;
  </code></pre>
  
  <p>And here is the data gathering portion of my PHP XML parsing script:</p>
  
  <pre><code>$doc = new DOMDocument();
  $doc-&gt;load('http://api.getsatisfaction.com/companies/issuetrak/topics?sort=recently_active&amp;limit=7');
  $arrFeeds = array();
  foreach ($doc-&gt;getElementsByTagName('entry') as $node) {
   $title = $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue;
   //I need to just store the link-&gt;href value to $link below
   //$link = ???;
  }
  </code></pre>
  
  <p>Any suggestions on how to extract that "href" attribute?</p>
  
  <p>Thanks!</p>