0
我使用DataSet中的ReadXML讀取沒有任何模式的XML文檔。每個不同的父標籤中有2個'duration'標籤。這就是爲什麼ReadXML的抱怨:C#DataSet ReadXML錯誤:「表xxx已被分配爲另一個表yyy的子項」。沒有模式
System.Data.DataException: The table 'duration' is already allocated as a child of another table 'video'. Cannot set table 'asset' as parent table.
這是它試圖讀取XML文檔:
(這裏不正確粘貼XML)
這是C#我使用的代碼:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
resultDs.ReadXml(response.GetResponseStream());
}
return resultDs;
是否有任何其他方式可以使用d這個XML文檔?
請微啓,
Simplecode