日期:2014-05-18 浏览次数:21053 次
StreamReader reader = new StreamReader("c:\\1.xml"); string source = reader.ReadToEnd();
------解决方案--------------------
接 bdmh
C# code
XmlDocument xd = new XmlDocument();
xd.Load(source );
XmlNodeList xnl = xd.GetElementsByTagName("xxx");
NodeEntity ne = new NodeEntity();
foreach (XmlNode xn in xnl)
{
string pname = xn.Attributes["OMG"].Value;
}