日期:2014-05-19  浏览次数:20780 次

要求用DataSet获取xml节点的值?????
<?xml   version= "1.0 "   standalone= "yes "   ?>
<customer>
<goo   cost= "150.0000 "   date= "2007-3-16   8:13:30 "   />
<info> aa </info>
</customer>

怎么获得info节点的值,,只能使用dataset。

------解决方案--------------------
DataSet ds = new DataSet();
ds.ReadXml(file);
DataTable dt = ds.Tables[ "customer "];
MessageBox.Show(dt.Rows[0][ "info "].ToString());