title: Read inner attribute/tags in RSS Items like (media:content) in windows phone 8
body: <p>I recently had a problem with xml parsing in my Windows Phone 8 application, I can read all tags in the XML feed like title, description, etc. straight away. But I'm not able to get the inner attribute from tags which is contains a ":" symbol for example:  <code>&lt;media:content ... /&gt;</code> or <code>&lt;media:text ../&gt;</code> etc.</p>
  
  <p>Here is the XML feed from Yahoo: <a href="http://cricket.yahoo.com/news/rss/" rel="nofollow">http://cricket.yahoo.com/news/rss/</a>.</p>
  
  <p>Every item is like this:</p>
  
  <pre><code>   &lt;item&gt;
        &lt;title&gt;Asia Cup: India vs Sri Lanka&lt;/title&gt;
     &lt;description&gt;
         &lt;p&gt;&lt;a href="http://cricket.yahoo.com/prematch-india-vs-sri-lanka_188453"&gt;&lt;img                     src="http://l3.yimg.com/bt/api/res/1.2/2rY73ROpgTT4wBxyQqSjwA--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTg2O3B4b2ZmPTUwO3B5b2ZmPTA7cT03NTt3PTEzMA--/http://media.zenfs.com/en_us/News/ap_webfeeds/112af677510d1a084d0f6a706700f2a0.jpg" width="130" height="86" alt="India’s Shikhar Dhawan plays a shot during the Asia Cup one-day international cricket tournament against Sri Lanka in Fatullah, near Dhaka, Bangladesh, Friday, Feb. 28, 2014. (AP Photo/A.M. Ahad)" align="left" title="India’s Shikhar Dhawan plays a shot during the Asia Cup one-day international cricket tournament against Sri Lanka in Fatullah, near Dhaka, Bangladesh, Friday, Feb. 28, 2014. (AP Photo/A.M. Ahad)" border="0" /&gt;&lt;/a&gt;Fatullah - India lose quick wicket after Dhawan&amp;#039;s dismissal for 94.&lt;/p&gt;&lt;br clear="all"/&gt;
      &lt;/description&gt;
      &lt;link&gt;
         http://cricket.yahoo.com/prematch-india-vs-sri-lanka_188453
      &lt;/link&gt;
     &lt;pubDate&gt;Fri, 28 Feb 2014 13:08:29 +0530&lt;/pubDate&gt;
     &lt;guid isPermaLink="false"&gt;prematch-india-vs-sri-lanka_188453&lt;/guid&gt;
     &lt;media:content url="http://l3.yimg.com/bt/api/res/1.2/2rY73ROpgTT4wBxyQqSjwA--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTg2O3B4b2ZmPTUwO3B5b2ZmPTA7cT03NTt3PTEzMA--/http://media.zenfs.com/en_us/News/ap_webfeeds/112af677510d1a084d0f6a706700f2a0.jpg" type="image/jpeg" width="130" height="86"/&gt;
      &lt;media:text type="html"&gt;
        &lt;p&gt;&lt;a href="http://cricket.yahoo.com/prematch-india-vs-sri-lanka_188453"&gt;&lt;img src="http://l3.yimg.com/bt/api/res/1.2/2rY73ROpgTT4wBxyQqSjwA--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTg2O3B4b2ZmPTUwO3B5b2ZmPTA7cT03NTt3PTEzMA--/http://media.zenfs.com/en_us/News/ap_webfeeds/112af677510d1a084d0f6a706700f2a0.jpg" width="130" height="86" alt="India’s Shikhar Dhawan plays a shot during the Asia Cup one-day international cricket tournament against Sri Lanka in Fatullah, near Dhaka, Bangladesh, Friday, Feb. 28, 2014. (AP Photo/A.M. Ahad)" align="left" title="India’s Shikhar Dhawan plays a shot during the Asia Cup one-day international cricket tournament against Sri Lanka in Fatullah, near Dhaka, Bangladesh, Friday, Feb. 28, 2014. (AP Photo/A.M. Ahad)" border="0" /&gt;&lt;/a&gt;Fatullah - India lose quick wicket after Dhawan&amp;#039;s dismissal for 94.&lt;/p&gt;&lt;br clear="all"/&gt;
     &lt;/media:text&gt;
      &lt;media:credit role="publishing company"/&gt;
    &lt;/item&gt;
  </code></pre>
  
  <p>And my code to parse and get data is: </p>
  
  <pre><code>try
  {
      XNamespace media = "http://cricket.yahoo.com/news/rss/";
  
      XDocument xmlDoc = XDocument.Parse(e.Result);
      var all = xmlDoc.Descendants("channel");
      List&lt;News1&gt; _singleRsses = new List&lt;News1&gt;();
      foreach (var item in all)
      {
          var itemVedio = item.Descendants("item");
          foreach (var xElement in itemVedio)
          {
              string _title = xElement.Element("title").Value;
              string _description = xElement.Element("description").Value;
              string pubDate = DateTime.Parse(xElement.Element("pubDate").Value).ToString();
              string link = xElement.Element("link").Value;
              string _imageSource = xElement.Element(media+"content").Attribute("url").Value;
  
              News1 _singleRss = new News1
              {
                  Title = _title,
                  description = Regex.Replace(_description, "&lt;.+?&gt;", string.Empty),
                  PubDate = pubDate,
                  Link = link,
                  Image=_imageSource
              };
              _singleRsses.Add(_singleRss);
          }
      }
      newsListbox.DataContext = _singleRsses;
  }
  catch (Exception exp)
  {
      MessageBox.Show("Exception: " + exp);
      _progressIndicator.IsIndeterminate = false;
      _progressIndicator.IsVisible = false;
  }
  
  
  public class News1
  {
      public string Title { get; set; }
      public string Image { get; set; }
      public string description { get; set; }
      public string PubDate { get; set; }
      public string Link { get; set; }
  }
  </code></pre>
  
  <p>After some tutorials i used XNamespace too, but it won't work and I got this error:</p>
  
  <pre><code>Exception: system.nullReferenceException:  Object reference not set to an instance of an object
  </code></pre>