111,126
社区成员
发帖
与我相关
我的任务
分享
<configuration>
<configSections>
<section name="aa" type="n.aa"/>
</configSections>
</configuration>
XmlNodeList xnlist = xmlDoc.SelectSingleNode("configSections").ChildNodes;
foreach (XmlNode xn in xnlist)//遍历节点
{
XmlElement xe = (XmlElement)xn;
if (xe.GetAttribute("name") == "aa")
{
}
}