Using RSS Feeds

I'm trying to use an rss feed on my asp.net website but can't get it to work. Here is the code behind the webpage:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        rssPosts.DataSource = GetRSSFeed("http://www.thepittsburghchannel.com/news/topstory.rss")
        rssPosts.DataBind()
    End Sub

    Protected Function GetRSSFeed(ByVal strURL As String) As DataTable
        'Get the XML data
        Dim reader As XmlTextReader = New XmlTextReader(strURL)

        'return a new DataSet
        Dim ds As DataSet = New DataSet()
        ds.ReadXml(reader)
        Return ds.Tables(2)
    End Function

The result when I run this is an error: A column named 'category' already belongs to this DataTable: cannot set a nested table name to the same name.

I've tried many different rss feeds and all give the same result.

Any help would be greatly appreciated.
stullhe104Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David H.H.LeeCommented:
Hi stullhe104,
Perhaps you can use online Feed Validator to check the existing RSS file:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.thepittsburghchannel.com%2Fnews%2Ftopstory.rss
0
stullhe104Author Commented:
Thanks for the post. It does show that the rss feed is valid but that didn't help solve my problem.

I solved the problem by using RSSToolKit which I found at:
http://www.codeplex.com/ASPNETRSSToolkit

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David H.H.LeeCommented:
Hi stullhe104,
Ok, you may request admin to refund the points since you already found your own solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.