摘要: XMLFile1.xml文件如下:view sourceprint?01<?xml version="1.0" encoding="utf-8" ?> 02<root name="rootNode" text="根节点"> 03<node name="node1" text="节点1"> 04<childNode name="childNode1" text="子节点1"> 05<g 阅读全文
posted @ 2011-04-08 00:09 V587 阅读(427) 评论(0) 推荐(0) 编辑
摘要: foreach (TreeNode CNode in LastTree.Nodes) {abc(CNode); } void abc(TreeNode node){ MessageBox.Show(node.Text);foreach(TreeNode child in node.ChildNodes){abc(child);// 递归}} 阅读全文
posted @ 2011-04-08 00:03 V587 阅读(451) 评论(0) 推荐(0) 编辑