http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/behaviors/library/treeview/treeview.asp
//////////<HTML XMLNS:mytree>
<HEAD><?IMPORT NAMESPACE="mytree" IMPLEMENTATION="treeview.htc"/>
<TITLE>TreeView Add Method</TITLE>
<LINK REL="stylesheet" HREF="/workshop/samples/samples.css" TYPE="text/css">
<SCRIPT>
function addNodeToTree(){
var newNode = oTree.createTreeNode();
newNode.setAttribute("text", "New Root Node");
oTree.add(newNode);
}
function addNodeToNode(){
var parentNode = oTree.getTreeNode("0");
var newNode = oTree.createTreeNode();
newNode.setAttribute("text", "New Child Node");
parentNode.add(newNode);
}</SCRIPT>
</HEAD>
<BODY>
<!--TOOLBAR_START--><!--TOOLBAR_EXEMPT--><!--TOOLBAR_END-->
<H1>add Method</H1>
<P>This example shows the differences in this method when applied to the <b>TreeView</b> object and the <b>TreeNode</b> object.</P> 
<BUTTON ONCLICK=addNodeToTree()>Add node to tree view</BUTTON>
<BUTTON ONCLICK=addNodeToNode()>Add node to tree node</BUTTON>
<mytree:TREEVIEW ID="oTree" >
       <mytree:TREENODE TEXT="Michigan" EXPANDED="true">
         <mytree:TREENODE TEXT="Detroit"/>
 <mytree:TREENODE TEXT="Farmington"/>
         <mytree:TREENODE TEXT="Southfield" />
      </mytree:TREENODE>
    <mytree:TREENODE TEXT="Washington">
<mytree:TREENODE TEXT="Bellevue"/>
        <mytree:TREENODE TEXT="Redmond"/>
        <mytree:TREENODE TEXT="Seattle"/>
  </mytree:TREENODE>
 </mytree:TREEVIEW>  
 <P class="viewsource">To view the source code, right-click this page and choose <B>View Source</B> from the shortcut menu that appears.</P>
<!-- Copyright -->
<A class="copyright" HREF="http://www.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top"> 
&copy; 2005 Microsoft Corporation. All rights reserved. Terms of use.
</A>                                 
</BODY>
</HTML>