This project has moved and is read-only. For the latest updates, please go here.

Problems reading some (few) rss feeds

Topics: User Forum
Jan 22, 2009 at 4:40 PM
Hello,
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:

http://www.edilportale.com/rss/rss_full.asp

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
            lxmlFeedDoc.Load(lRequest.GetResponse.GetResponseStream())

            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
            Next

Can anybody help me?
Thank you

Eclipse79


Jan 23, 2009 at 11: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:
http://www.edilportale.com/rss/rss_full.asp

the author field is this:

<author>
<a href="mailto:xxx@xxx.com">
xxxx
</a>
</author>

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