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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER