标签:
string xml = @"<NavList>
<List>
<Num>3</Num>
</List>
<List>
<Num>65</Num>
</List>
<List>
<Num>24</Num>
</List>
<List>
<Num>44</Num>
</List>
</NavList>";
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
int n = doc.SelectNodes(@"/NavList/List/Num").Cast<XmlNode>().Select(c => int.Parse(c.InnerText)).Max();
MessageBox.Show(n.ToString());
标签:
原文地址:http://www.cnblogs.com/bzmlving/p/5965072.html