日期:2014-05-17 浏览次数:20446 次
<?xml version="1.0" encoding="utf-8" ?> <response> <items list="true"> <item> <num>200</num> <price>100.00</price> <title>衣服</title> </item> <item> <num>100</num> <price>122.00</price> <title>鞋子</title> </item> </items> <total_results>23</total_results> </response>
DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("2.xml")); GridView1.DataSource = ds; GridView1.DataBind();