EDN Admin
Well-known member
SO I have the following code:
<div style="line-height:100%!important; background-color:white; font-family:courier new; font-size:11px; border:#7f9db9 1px solid
<table cellspacing="0" cellpadding="0" style="border-bottom:#eee 0px solid; border-right-width:0px; background-color:#fff; margin:2px 0px; width:99%; border-collapse:collapse; border-top-width:0px; border-left-width:0px
<colgroup span="1 <col span="1" style=" </colgroup>
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td style="background-color:#f7f7f7 <span style="color:#0000ff void<span style="font-size:11px wreckedRSS_DownloadStringCompleted(<span style="color:#0000ff object<span style="font-size:11px sender, DownloadStringCompletedEventArgs
e) </td>
</tr>
<tr>
<td>{</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 XElement wreckedXML = XElement.Parse(e.Result);</td>
</tr>
<tr>
<td>XNamespace media = <span style="color:#0000ff "http://search.yahoo.com/mrss/"<span style="font-size:11px ;
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 ImageSourceConverter convertImage = <span style="color:#0000ff
new<span style="font-size:11px ImageSourceConverter(); </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>newsFeedListBox.ItemsSource = from story <span style="color:#0000ff in<span style="font-size:11px wreckedXML.Descendants(<span style="color:#0000ff "channel"<span style="font-size:11px ).Descendants(<span style="color:#0000ff "item"<span style="font-size:11px )
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 select <span style="color:#0000ff new<span style="font-size:11px App.Story
</td>
</tr>
<tr>
<td>{</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 Title = story.Element(<span style="color:#0000ff "title"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td>Description = story.Element(<span style="color:#0000ff "description"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 <span style="color:#008000 //wreckedXML.Element(media + "content").NextNode,
</td>
</tr>
<tr>
<td>ImageURI = story.Element(media + <span style="color:#0000ff "content"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>};</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>loadingDots.IsIndeterminate = <span style="color:#0000ff false<span style="font-size:11px ;
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 }</td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</table>
<br/>
My issue is that where im trying to grab the image URL for the post from the RSS feed, there are 2 media:content items right next to eachother. The first one is an icon for the author, the 2nd is the image for the post. I dont know how to specify what is what.
Any takers?<hr class="sig LIVE & Zune - PittaMan http://www.jpitta.com
View the full article
<div style="line-height:100%!important; background-color:white; font-family:courier new; font-size:11px; border:#7f9db9 1px solid
<table cellspacing="0" cellpadding="0" style="border-bottom:#eee 0px solid; border-right-width:0px; background-color:#fff; margin:2px 0px; width:99%; border-collapse:collapse; border-top-width:0px; border-left-width:0px
<colgroup span="1 <col span="1" style=" </colgroup>
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td style="background-color:#f7f7f7 <span style="color:#0000ff void<span style="font-size:11px wreckedRSS_DownloadStringCompleted(<span style="color:#0000ff object<span style="font-size:11px sender, DownloadStringCompletedEventArgs
e) </td>
</tr>
<tr>
<td>{</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 XElement wreckedXML = XElement.Parse(e.Result);</td>
</tr>
<tr>
<td>XNamespace media = <span style="color:#0000ff "http://search.yahoo.com/mrss/"<span style="font-size:11px ;
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 ImageSourceConverter convertImage = <span style="color:#0000ff
new<span style="font-size:11px ImageSourceConverter(); </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>newsFeedListBox.ItemsSource = from story <span style="color:#0000ff in<span style="font-size:11px wreckedXML.Descendants(<span style="color:#0000ff "channel"<span style="font-size:11px ).Descendants(<span style="color:#0000ff "item"<span style="font-size:11px )
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 select <span style="color:#0000ff new<span style="font-size:11px App.Story
</td>
</tr>
<tr>
<td>{</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 Title = story.Element(<span style="color:#0000ff "title"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td>Description = story.Element(<span style="color:#0000ff "description"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 <span style="color:#008000 //wreckedXML.Element(media + "content").NextNode,
</td>
</tr>
<tr>
<td>ImageURI = story.Element(media + <span style="color:#0000ff "content"<span style="font-size:11px ).Value,
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>};</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 </td>
</tr>
<tr>
<td>loadingDots.IsIndeterminate = <span style="color:#0000ff false<span style="font-size:11px ;
</td>
</tr>
<tr>
<td style="background-color:#f7f7f7 }</td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</table>
<br/>
My issue is that where im trying to grab the image URL for the post from the RSS feed, there are 2 media:content items right next to eachother. The first one is an icon for the author, the 2nd is the image for the post. I dont know how to specify what is what.
Any takers?<hr class="sig LIVE & Zune - PittaMan http://www.jpitta.com
View the full article