摘要:
从文件流读XMLstring urlPath = url; DataSet ds = new DataSet(); DataTable dt = new DataTable(); try { using (FileStream fs = new FileStream(url, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { ds.ReadXml(fs); fs.Close(); dt = ds.Tables["Agents"]; return dt; } }catch { return dt; } 阅读全文