using System.Xml;
using System.Xml.Linq;XmlDocument document = new XmlDocument();
document.Load("SessionDef.xml");XmlNodeList nodelist = document.SelectSingleNode("SessionGroup").ChildNodes;
foreach (XmlNode node in nodelist)
{
string s1=node.Name;}
代码操作的xml文件是 SessionDef.xml
时间: 2024-11-07 13:06:14