I'm using ReadXML from DataSet to read a XML document without any schema. There are 2 'duration' tags each in a different parent tag. That is why ReadXML complaining:
System.Data.DataException: The table 'duration' is already allocated as a child of another table 'video'. Cannot set table 'asset' as parent table.
This is the XML doc it's trying to read:
(I couldn't paste XML here properly)
This is the C# code that i use:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
resultDs.ReadXml(response.GetResponseStream());
}
return resultDs;
Is there any other way I can read this XML doc?
Please enlight,
Simplecode