for (int i = 0; i < xn.ChildNodes.Count; i++)
{
TreeNode new_tn = new TreeNode();
new_tn.Text = xn.ChildNodes[i].Name;
tn.ChildNodes.Add(new_tn);
GetTreeNode(xn.ChildNodes[i], new_tn);
tn.Expand();
}
。。。。基础知识