摘要:
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 阅读全文
摘要:
foreach (TreeNode CNode in LastTree.Nodes) {abc(CNode); } void abc(TreeNode node){ MessageBox.Show(node.Text);foreach(TreeNode child in node.ChildNodes){abc(child);// 递归}} 阅读全文