日期:2014-05-17 浏览次数:20730 次
<?xml version="1.0" encoding="GB2312" ?> <person> <student> <id_no>9096036</id_no> <name>蔡文龙</name> <tel>04-32345671</tel> <mail>lung67@giga.net.tw</mail> </student> <student> <id_no>9096001</id_no> <name>许百宏</name> <tel>04-12345671</tel> <mail>em@ms37.hient.net</mail> </student> </person>
DataSet ds = new DataSet(); ds.ReadXmlSchema(strPath); ds.ReadXml(strPath); dataGridView1.DataSource = ds.Tables[0].DefaultView;