Hello i need parse this xml with C# in console app , any help ?
<TREE_MENU_NESTED>
<TREE>Category I
<TREE ACTION="URL" LINK="c1/p1.html" TARGET="_self" ICON="icon_slide" >Product 1</TREE>
<TREE ACTION="URL" LINK="c2/p2.html" TARGET="_self" ICON="icon_slide" >Product 2</TREE>
</TREE>
<TREE>Category II
<TREE ACTION="URL" LINK="c2/p1.html" TARGET="_self" ICON="icon_slide" >Product 1</TREE>
<TREE ACTION="URL" LINK="c2/p2.html" TARGET="_self" ICON="icon_slide" >Product 2</TREE>
</TREE>
</TREE_MENU_NESTED>
Need show in console:
–category 1: product1, product 2
–category 2: product1, product 2
You can use Linq to Xml