EDN Admin
Well-known member
i have the following xml data.
<OrgChart>
<Employee Key="1" Name="Corrado Junior Soprano" Title="the Boss" />
<Employee Key="2" ParentKey="1" Name="Tony Soprano" Title="Underboss" />
<Employee Key="3" ParentKey="1" Name="Herman Hesh Rabkin" Title="Advisor" />
<Employee Key="4" ParentKey="2" Name="Paulie Walnuts" Title="Capo" />
<Employee Key="5" ParentKey="2" Name="Ralph Cifaretto" Title="Capo MIA" />
<Employee Key="6" ParentKey="2" Name="Silvio Dante" Title="Consigliere" />
<Employee Key="7" ParentKey="2" Name="Bobby Baccilien" Title="Capo" />
<Employee Key="8" ParentKey="4" Name="Sal Bonpensiero" Title="MIA" />
<Employee Key="9" ParentKey="4" Name="Christopher Moltisanti" Title="Made Man" />
<Employee Key="10" ParentKey="4" Name="Furio Giunta" Title="Muscle" />
<Employee Key="11" ParentKey="4" Name="Patsy Parisi" Title="Accountant" />
</OrgChart>
in this i need make a pre order binary traversal according to primary key and get the corresponding names in a string.
could any one help me.
View the full article
<OrgChart>
<Employee Key="1" Name="Corrado Junior Soprano" Title="the Boss" />
<Employee Key="2" ParentKey="1" Name="Tony Soprano" Title="Underboss" />
<Employee Key="3" ParentKey="1" Name="Herman Hesh Rabkin" Title="Advisor" />
<Employee Key="4" ParentKey="2" Name="Paulie Walnuts" Title="Capo" />
<Employee Key="5" ParentKey="2" Name="Ralph Cifaretto" Title="Capo MIA" />
<Employee Key="6" ParentKey="2" Name="Silvio Dante" Title="Consigliere" />
<Employee Key="7" ParentKey="2" Name="Bobby Baccilien" Title="Capo" />
<Employee Key="8" ParentKey="4" Name="Sal Bonpensiero" Title="MIA" />
<Employee Key="9" ParentKey="4" Name="Christopher Moltisanti" Title="Made Man" />
<Employee Key="10" ParentKey="4" Name="Furio Giunta" Title="Muscle" />
<Employee Key="11" ParentKey="4" Name="Patsy Parisi" Title="Accountant" />
</OrgChart>
in this i need make a pre order binary traversal according to primary key and get the corresponding names in a string.
could any one help me.
View the full article