title: The ':' character, hexadecimal value 0x3A, cannot be included in a name
body: <p>I saw this question already, but I didnt see an answer..</p>
  
  <p>So I get this error:</p>
  
  <pre><code>The ':' character, hexadecimal value 0x3A, cannot be included in a name.
  </code></pre>
  
  <p>On this code:</p>
  
  <pre><code>    XDocument XMLFeed = XDocument.Load("http://feeds.foxnews.com/foxnews/most-popular?format=xml");
      XNamespace content = "http://purl.org/rss/1.0/modules/content/";
  
      var feeds = from feed in XMLFeed.Descendants("item")
          select new
          {
              Title = feed.Element("title").Value,
              Link = feed.Element("link").Value,
              pubDate = feed.Element("pubDate").Value,
              Description = feed.Element("description").Value,
              MediaContent = feed.Element(content + "encoded")
          };
  
      foreach (var f in feeds.Reverse())
      {
          ....
      }
  </code></pre>
  
  <p>An item looks like that:</p>
  
  <pre><code>&lt;rss&gt;    
  &lt;channel&gt;
  
  ....items....
  
  &lt;item&gt;
  &lt;title&gt;Pentagon confirms plan to create new spy agency&lt;/title&gt;
  &lt;link&gt;http://feeds.foxnews.com/~r/foxnews/most-popular/~3/lVUZwCdjVsc/&lt;/link&gt;
  &lt;category&gt;politics&lt;/category&gt;
  &lt;dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/" /&gt;
  &lt;pubDate&gt;Tue, 24 Apr 2012 12:44:51 PDT&lt;/pubDate&gt;
  &lt;guid isPermaLink="false"&gt;http://www.foxnews.com/politics/2012/04/24/pentagon-confirms-plan-to-create-new-spy-agency/&lt;/guid&gt;
  &lt;content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"&gt;&lt;![CDATA[|http://global.fncstatic.com/static/managed/img/Politics/panetta_hearing_030712.jpg&lt;img src="http://feeds.feedburner.com/~r/foxnews/most-popular/~4/lVUZwCdjVsc" height="1" width="1"/&gt;]]&gt;&lt;/content:encoded&gt;
  &lt;description&gt;The Pentagon confirmed Tuesday that it is carving out a brand new spy agency expected to include several hundred officers focused on intelligence gathering around the world.&amp;amp;amp;#160;&lt;/description&gt;
  &lt;dc:date xmlns:dc="http://purl.org/dc/elements/1.1/"&gt;2012-04-4T19:44:51Z&lt;/dc:date&gt;
  &lt;feedburner:origLink&gt;http://www.foxnews.com/politics/2012/04/24/pentagon-confirms-plan-to-create-new-spy-agency/&lt;/feedburner:origLink&gt;
  &lt;/item&gt;
  
  ....items....
  
  &lt;/channel&gt;
  &lt;/rss&gt;    
  </code></pre>
  
  <p>All I want is to get the "http://global.fncstatic.com/static/managed/img/Politics/panetta_hearing_030712.jpg", and before that check if content:encoded exists..</p>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT:</strong>
  I've found a sample that I can show and edit the code that tries to handle it..</p>
  
  <p><strong>EDIT2:</strong>
  I've done it in the ugly way:</p>
  
  <pre><code>text.Replace("content:encoded", "contentt").Replace("xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"","");
  </code></pre>
  
  <p>and then get the element in the normal way:</p>
  
  <pre><code>MediaContent = feed.Element("contentt").Value
  </code></pre>