private void DataBindSource()
{
XmlDataDocument xmlDoc = new XmlDataDocument();
DataSet myDataSet = xmlDoc.DataSet;
myDataSet.ReadXml("网页名");
//XmlNode root = xmlDoc.FirstChild;//取第一个子节点
DataGrid1.DataSource = myDataSet;
//myDataSet.Tables["rptvs_room"];//指定读取到的视图
DataGrid1.DataBind();
}
{
XmlDataDocument xmlDoc = new XmlDataDocument();
DataSet myDataSet = xmlDoc.DataSet;
myDataSet.ReadXml("网页名");
//XmlNode root = xmlDoc.FirstChild;//取第一个子节点
DataGrid1.DataSource = myDataSet;
//myDataSet.Tables["rptvs_room"];//指定读取到的视图
DataGrid1.DataBind();
}