xml格式如下:
<?xml version="1.0"?>
<!DOCTYPE BSNode[<!ELEMENT BSNode ANY><!ATTLIST BSNode Guid ID #REQUIRED>]>
<BSNode Guid="ROOT" Name="" Type="ROOT" Description="工程节点....">
<BSNode IsDeleted="false" Name="根节点" Type="PROJECT_NODE" Guid="79bfe2f7-e1b0-4f45-8490-156c9359e8cd">
<BSNode IsDeleted="false" Name="子节点1" Type="JSB_NODE" Guid="44eb9176-d72c-4b4b-95a1-ef761499c426">
<BSNode IsDeleted="false" Name="叶节点1" Type="SWB_NODE" Guid="c67558a8-1843-4ed7-90aa-5047220c97ed" />
<BSNode IsDeleted="false" Name="叶节点2" Type="SWB_NODE" Guid="c67558a8-1843-4ed7-90aa-5047220c97ed" />
<BSNode IsDeleted="false" Name="叶节点3" Type="SWB_NODE" Guid="c67558a8-1843-4ed7-90aa-5047220c97ed" />
</BSNode>
<BSNode IsDeleted="false" Name="子节点2" Type="SWB_NODE" Guid="c67558a8-1843-4ed7-90aa-5047220c97ed" />
<BSNode IsDeleted="false" Name="子节点3" Type="FJ_NODE" IsFJChildNode="false" Guid="656600ee-b2ee-4469-8ad5-41f0785f6c4b" />
</BSNode>
</BSNode>
生成treeview该怎做啊?我不知道如何去生成父节点与子节点。可以提供详细代码吗?帮帮忙吧各位大哥~~
[此贴子已经被作者于2007-7-3 22:04:31编辑过]