How to read <content:encoded> in RSS

Feb 13, 2009 at 1:55 PM
Using Argotic, how can I read the data within the content:encoded tag in an RSS item?  I only see a way to read the description tag.

Thanks,

Greg
Coordinator
Feb 18, 2009 at 2:00 AM
Greg,

The content:encoded tag is an extension to RSS, it should be showing up in the Extensions collection of the RSS item.
Feb 18, 2009 at 3:18 PM
I tried this...but it didn't work...what am doing wrong?  The sample code you provide for itunes doesn't really help me for the content:econded tag:

Imports Argotic.Extensions.Core

Dim feed As RssFeed = RssFeed.Create(feedUrl, settings)
For Each item As RssItem In feed.Channel.Items
Dim tmpContent As String = ""
If item.HasExtensions Then
Dim itemExtension As SiteSummaryContentItem
Try
tmpContent = itemExtension.Content.ToString()
Catch ex As Exception
tmpContent = ""
End Try
End If
Next

Feb 25, 2009 at 3:27 PM
Is there anyone out there that can help me quicker with this issue?

Please contact me if you can provide assistance.

Sincerely,

Greg Davis
212-380-6898
Mar 9, 2009 at 5:00 PM
Thank you, do you have that code in VB.net? I need to declare the
variables as a certain type and I'm not sure which ones to choose
(string? object?).

Sincerely,

Greg Davis
Web Developer & Scuba Instructor
212-380-6898
http://www.DiveBuddy.com
http://www.DiveTexas.com
http://www.UnderwaterAds.org
http://www.WorldBlogArchive.com



On Mon, Mar 9, 2009 at 4:14 AM, [email removed] wrote:
> From: Apophis
>
> This is how I read RSS-Content:
>
> if(item.HasExtensions) {
>   var contentExtension =
> item.Extensions.OfType<SiteSummaryContentSyndicationExtension>().FirstOrDefault();
>   if(contentExtension != null) {
>     var encodedContent = contentExtension.Context.Encoded;
>   }
> }
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Mar 31, 2009 at 7:52 PM
Any help with this would be greatly appreciated.  I've tried converting your C code to VB...but I'm getting errors still.  Can you provide me with VB code to read rss content:enconded?

Thank you,

Greg Davis
Nov 9, 2012 at 2:57 PM

This is an old thread, but it's the only one that shows up when I search for this problem. I'm also trying to figure this out. Please help.

Thanks,

Wes