title: How to get the tag "<yweather:condition>" from Yahoo Weather RSS in PHP?
body: <pre><code>&lt;?php
      $doc = new DOMDocument();
      $doc-&gt;load('http://weather.yahooapis.com/forecastrss?p=VEXX0024&amp;u=c');
      $channel = $doc-&gt;getElementsByTagName("channel");
      foreach($channel as $chnl)
      {
          $item = $chnl-&gt;getElementsByTagName("item");
          foreach($item as $itemgotten)
          {
              $describe = $itemgotten-&gt;getElementsByTagName("description");
              $description = $describe-&gt;item(0)-&gt;nodeValue;
              echo $description;
          }
      }
  ?&gt;
  </code></pre>
  
  <p>And as you can see is a simple script who return the content of the tag  from the above url. The thing is that i dont need that content, i need the one who is inside the tag . I need the attributes <strong>code</strong>, <strong>temp</strong>, <strong>text</strong>. How do i do that simple with my actual code? Thanks</p>
  
  <p>Ex of the tag content:</p>
  
  <pre><code>&lt;yweather:condition  text="Partly Cloudy"  code="30"  temp="30"  date="Fri, 16 Jul 2010 8:30 am AST" /&gt;
  </code></pre>