Quantcast
Viewing latest article 2
Browse Latest Browse All 5

Error reading Atom feeds

The code below is failing when I'm trying to read atom feeds from a specific website. The error im getting is: 'Text' is an invalid XmlNodeType . I have pasted the feed to pastebin and unfortunately I cannot provide direct link to the feed since it includes private access information.

My Code:

Using reader = XmlReader.Create(FeedURL)
    Dim atomContent = SyndicationFeed.Load(reader)
    Dim rvArr = atomContent.Items.Reverse()
    For Each entry As Object In rvArr
        Dim title As String = entry.title.text
        Dim excerpt As String = "excerpt" '
        Dim content As String = entry.summary.text
        Dim ndate As String = Convert.ToDateTime(entry.LastUpdatedTime.ToString()).ToString("dd-MM-yyyy HH:mm")
    Next
End Using

Viewing latest article 2
Browse Latest Browse All 5

Trending Articles