I am new to c# and the problem i am facing is that i have an XML file which include a list of process information with fields process id, process name and parent id. i nedd help in populating this xml file into tree view. The XML file is not formatted one. My XML file will look like:
<Process id="0" name="[System Process]" ParentPID="0" />
<Process id="4" name="System" ParentPID="0" />
<Process id="100" name="MyApp.exe" ParentPID="4" />
<Process id="120" name="avgrsx.exe" ParentPID="10"/>
<Process id="150" name="avgcsrvx.exe" ParentPID="120" />
<Process id="155" name="csrss.exe" ParentPID="100" />
<Process id="170" name="winlogon.exe" ParentPID="100" />
<Process id="180" name="services.exe" ParentPID="170" />
<Process id="200" name="lsass.exe" ParentPID="170" />
<Process id="110" name="svchost.exe" ParentPID="180" />
<Process id="380" name="svchost.exe" ParentPID="200"/>
<Process id="530" name="svchost.exe" ParentPID="1764" />
<Process id="420" name="Avg.exe" ParentPID="110" />
i want to create a tree view in c# which will look like:
0
|-4
| |-100
| |-155
| |-170
| |-180
| | |-110
| | |-420
| |-200
| |-380
|-10
| |-120
| |-150
|-155
|-1764
|-530
Any help will greatly be appreciated. Thanks