This project has moved. For the latest updates, please go here.

Problems reading some (few) rss feeds

Topics: User Forum
Jan 22, 2009 at 3:40 PM
I'm testing a service rss reader, written with RSS Toolkit. In some situations, I can read a small part of the feed, like in this case:

In this situation, I can only read 1 category and 1 author, but no title and no description. The feed is also rich of news, but it seems that there is only 1 item.
My code is this (but also the sample project that came with the DLL has the same results):

            Dim lRequest As HttpWebRequest = WebRequest.Create(pstrLink)
            lRequest.Timeout = mdblTimeoutMSAcquisizioneRSS
            Dim lxmlFeedDoc As New XmlDocument

            Dim xrss As RssToolkit.Rss.RssDocument = RssToolkit.Rss.RssDocument.Load(lxmlFeedDoc.OuterXml)

            Dim rssItem As RssToolkit.Rss.RssItem

            'Cicla tutti gli items del feed appena ricavato
            For Each rssItem In xrss.Channel.Items
                If Not fInserisciFeedRss(pintCodFeed, rssItem) Then
                    evtLogEvents.WriteEntry("fImportaFeedRSS: Impossibile importare feed codice: " + pintCodFeed.ToString() + " con titolo: " + rssItem.Title, EventLogEntryType.Error, 0, clsTipiEventi.catRSS)
                End If

Can anybody help me?
Thank you


Jan 23, 2009 at 10:36 AM
I think I have understood the cause of the problem. The Toolkit fails to load item when the author field contains html code.

In this feed:

the author field is this:

<a href="">

If I delete the link, all works fine... is it a bug?