title: Getting an image from an RSS feed, using syndication?
body: <p>I am building a Windows Phone app and using <code>SyndicationFeed</code> to read an RSS feed. How do I get the picture from the feed? </p>
  
  <p>Will I need a converter(?), but I don't know what will go in it. I saw there is an <code>ImageUrl</code> property and I tried putting that in use but no joy. :(</p>
  
  <p>The pictures need to be filtered by the category together with the feed (which is predefined). I know how to get the feed filtered (generous forum member helped :) )
  just getting images is the problem.</p>
  
  <p>I'm using an MSDN example as a background: <a href="http://msdn.microsoft.com/en-us/library/hh487167(v=vs.92).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/hh487167(v=vs.92).aspx</a></p>
  
  <p>My feed: <a href="http://www.zimo.co/feed/" rel="nofollow">http://www.zimo.co/feed/</a></p>
  
  <hr>
  
  <p>I would use this regex to get the images from the feed:</p>
  
  <pre><code>Regex rg = new Regex(@"&lt;img.*?src=""(.*?)""", RegexOptions.IgnoreCase);
  </code></pre>
  
  <p>but the problem is how to implement it. so I get the feed and the picture at the same time  :(</p>
  
  <p>this is the code I use:</p>
  
  <pre><code>private void UpdateFeedList(string feedXML)
      {
          StringReader stringReader = new StringReader(feedXML);
          XmlReader xmlReader = XmlReader.Create(stringReader);
          SyndicationFeed feed = SyndicationFeed.Load(xmlReader);
  
  
  Regex rg = new Regex(@"&lt;img.*?src=""(.*?)""", RegexOptions.IgnoreCase);
  
  
          Deployment.Current.Dispatcher.BeginInvoke(() =&gt;
          {
  
  ls_text.ItemsSource = feed.Items;
  
  
          });
      }
  </code></pre>