Last post Nov 13, 2010 11:29 AM by Martin_Honnen
Nov 13, 2010 10:25 AM|elshorbagy|LINK
I'm using dataset.Readxml method to read Youtube xml webservice
it was working fine until youtube changed something in the service and I got this error
A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.
Can I read just one table to avoid this error or there is an alternative way to read the xml service instead of readxml method?
Nov 13, 2010 11:29 AM|Martin_Honnen|LINK
Use a generic XML API like LINQ to XML, see
http://msdn.microsoft.com/en-us/library/bb669128.aspx . Or in the case of an Atom or RSS feed you could also try
http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed.aspx. Trying to map any XML format to table data often fails so using DataSet or DataTable.ReadXml to process XML has its limits.