C#使用XmlDocument通过XPath获取单个节点的值的代码

把开发过程中比较常用的一些内容段收藏起来,如下的内容是关于C#使用XmlDocument通过XPath获取单个节点的值的内容,希望能对码农们有所用途。

public static Survey GetSurvey(string groupName, string surveyName) {
XmlDocument xmlSurveys = new XmlDocument();
xmlSurveys.Load(filename);
...
}






猜你喜欢

转载自www.cnblogs.com/boysbye/p/10302874.html