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

相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2021-12-27
  • 2021-08-30
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案