读取远程xml并写入到datatable

 XmlDataDocument xmlDoc = new XmlDataDocument();
    DataSet myDataSet = xmlDoc.DataSet;
    xmlDoc.DataSet.ReadXml("http://news.qq.com/newsgn/rss_newsgn.xml");
    XmlNode root = xmlDoc.FirstChild;
    DataTable dt = xmlDoc.DataSet.Tables["Item"];

你可能感兴趣的:(xml,Datatable)