Link to home
Start Free TrialLog in
Avatar of rowternet
rowternet

asked on

RSS feeds:A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.

Hi,

I am trying to consume RSS feeds from different sites.
With the same code some are working and others are failing.
Error:
A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.

How to fix this issue?

Thanks
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        gdv_RSS.DataSource = GetRSsFeeds()
        gdv_RSS.DataBind()
        'GetRSsFeeds()

    End Sub



    Private Function GetRSsFeeds() As DataTable

        Dim xmlRead As New XmlTextReader(myurl)
        Dim ds As New DataSet
        ds.ReadXml(xmlRead)
        Return ds.Tables(3)

    End Function

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of dqmq
dqmq
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rowternet
rowternet

ASKER

Thanks