日期:2014-05-18 浏览次数:20746 次
ArrayList list = new ArrayList(); for (int i = 0; i < nodelist.Count; i++) { XmlNode node = nodelist[i].ParentNode; if (node.Attributes["Sort"] != null) { [color=#FF0000]list[int.Parse(node.Attributes["Sort"].Value)] = node.Name.ToString();[/color] } }