I have following XML document (it might be changed)
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="231" Height="484.5">
<Canvas Canvas.Left="-0.72" Canvas.Top="-0.72">
<Canvas>
<Canvas>
<Canvas Name="shape5_2" Canvas.Left="0.72" Canvas.Top="-0.72">
<Rectangle RadiusX="0.1" RadiusY="0.1" Width="231" Height="484.5" Canvas.Left="0" Canvas.Top="1.44"/>
<Image Canvas.Left="0" Canvas.Top="1.44" Width="231" Height="484.5"/>
<Rectangle RadiusX="0.1" RadiusY="0.1" Width="231" Height="484.5" Canvas.Left="0" Canvas.Top="1.44"/>
</Canvas>
</Canvas>
</Canvas>
<Canvas Name="LocalMenus">
<Canvas.RenderTransform>
<MatrixTransform Matrix="0.75 0 0 0.75 0 0"/>
</Canvas.RenderTransform>
<Canvas/>
</Canvas>
</Canvas>
</Canvas>
I want to take the information from the above xml from Heretical manner for show in TreeList
For example I want to take the information as:
ID LocalName ParentID
1 canvas 1
2 Canvas 1
3 Canvas 2
4 Canvas 3
5 Canvas 4
6 Rectangle 5
7 Image 5
8 Canvas 2
9 Canvas.Ren 8
10 MatrixT 9