How to read XML file and display to treeview.
Help me in reading an xml file which i need to display it to the datagridview or treeview...And also get the total lowest value and maximum value of all rank in the Chicken,Pork and Beef.
How can i edit the value of a treeview?
Code:
<Inventory Category="Meat">
<param Name="Chicken">
<TasteRank Rank='1'>
<low>50</low>
<high>100</high>
</TasteRank>
<TasteRank Rank='2'>
<low>100</low>
<high>500</high>
</TasteRank>
<TasteRank Rank='3'>
<low>40</low>
<high>60</high>
</TasteRank>
</param>
<param Name="Pork">
<TasteRank Rank='1'>
<low>10</low>
<high>20</high>
</TasteRank>
<TasteRank Rank='2'>
<low>30</low>
<high>40</high>
</TasteRank>
<TasteRank Rank='3'>
<low>50</low>
<high>60</high>
</TasteRank>
</param>
<param Name="Beef">
<TasteRank Rank='1'>
<low>70</low>
<high>80</high>
</TasteRank>
<TasteRank Rank='2'>
<low>85</low>
<high>90</high>
</TasteRank>
<TasteRank Rank='3'>
<low>75</low>
<high>80</high>
</TasteRank>
</param>
</Inventory>