110,566
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="utf-8"?>
<www>
<common>
<title>my god !</title>
<url>34.htm</url>
</common>
<Re ID="1">
<UserID>u88</UserID>
<DateTime>2006-02-22 14:34:06</DateTime>
<IP>127.0.0.1</IP>
<Content><![CDATA[jjjj]]></Content>
</Re>
<Re ID="2">
<UserID>yu7</UserID>
<DateTime>2006-02-22 14:34:33</DateTime>
<IP>127.0.0.1</IP>
<Content><![CDATA[yyyyyyyyy<br>[[[[[[[[]]></Content>
</Re>
。。。。
</www>
XmlDocument doc = new XmlDocument();
doc.Load("xxx.xml");
XmlNodeList nodeList;
XmlNode root = doc.DocumentElement;
nodeList=root.SelectNodes("//Re/Content");
//Change the price on the books.
foreach (XmlNode content in nodeList)
{
...
}