Quantcast
Channel: Active questions tagged atom-feed+rss+xml-parsing - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Error reading Atom feeds

$
0
0

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 all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>