代碼如下:
XmlReader xmlRead =new XmlTextReader ("C:/XMLWebServicesSBS/xml2/xml/XMLFile1.xml");
DataSet ds=new DataSet ();
//ds.ReadXml ("C:/XMLWebServicesSBS/xml2/xml/XMLFile1.xml");
ds.ReadXml (xmlRead);
this.DataGrid1 .DataSource =ds;
this.DataGrid1 .DataBind ();