Given a dataBound tree this can easily be done with XPath in the xmlDataSource, here is an example where th top level will not be present, lemme know if this works for you!
JD
XMLFILE
<
level1><
level2> <
level3></level3></
level2><
level2><
level3></level3></
level2></
level1>
aspx:
<%
@ Page Language="C#" %><
html><
body><form id="form1" runat="server"><div><asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="xmlfile.xml" XPath="/level1/level2"></asp:XmlDataSource><asp:TreeView ID="TreeView2" runat="server" DataSourceID="XmlDataSource2"></asp:TreeView></div></form></
body></
html>
This posting is provided "AS IS" with no warranties, and confers no rights.
We Are Hiring