string sTemplate = “ <? xml version = " 1.0 " encoding = " utf-8 " ?>< …… > ”;XmlDocument xdoc = new XmlDocument();xdoc.LoadXml(sTemplate);XmlNodeList xmlnodes = xdoc.ChildNodes; foreach (XmlNode node in xdoc.DocumentElement.SelectNodes( " 道对象 " )){ string tmp = node[ " … " ].InnerText;}
posted on 2009-04-09 20:47 shaoyupeng 阅读( ...) 评论( ...) 编辑 收藏
转载于:https://www.cnblogs.com/shaoyupeng/archive/2009/04/09/1432708.html
相关资源:C# LinqXML遍历指定节点下的所有对象