title: Atom namespace with php simplexml
body: <p>This is my RSS template that I load into my simplexml object. I want to change the </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"&gt;
      &lt;channel&gt;
          &lt;atom:link href="link" rel="self" type="application/rss+xml" /&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;link&gt;&lt;/link&gt;
          &lt;description&gt;&lt;/description&gt;
          &lt;lastBuildDate&gt;&lt;/lastBuildDate&gt;
      &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>I'd like to change the href attribute in atom:link but I have no clue how to access it. I scoured through SO and found a bunch of information on how to access different namespaces but I can't figure out how to apply any of them to this specific example (mostly because I am pretty dense :)</p>
  
  <p>I can modify my link attribute with the line of code below but how would I modify the attribute mentioned above?</p>
  
  <pre><code>$rss-&gt;channel-&gt;link = $rssLink;
  </code></pre>
  
  <p>Any help would be appreciated!</p>