比如XmlNode root = xmlDoc.DocumentElement;
XmlNodeList nodeList = root.SelectNodes("descendant::item");foreach (XmlNode contents in nodeList)
{
}谢谢
XmlNodeList nodeList = root.SelectNodes("descendant::item");foreach (XmlNode contents in nodeList)
{
}谢谢
要想从前往后或从后往前的话用for (int i=contents.Length-1; i>=0; i--)
XmlNodeList.ItemOf[i]