C#从文件流读取xml文件到DataSet并显示
DataSet ds= new DataSet (); FileStream fs = new FileStream (Server.MapPath ("somexml.xml"),FileMode.Open , FileAccess.Read ); ds.ReadXml (fs); DataGrid1.DataSource = ds; DataGrid1.DataBind ();
C#从文件流读取xml文件到DataSet并显示
DataSet ds= new DataSet (); FileStream fs = new FileStream (Server.MapPath ("somexml.xml"),FileMode.Open , FileAccess.Read ); ds.ReadXml (fs); DataGrid1.DataSource = ds; DataGrid1.DataBind ();