Sample XML:
<MenuDataResult>
<Items>
<Item>
<ItemType>Submenu</ItemType>
<ItemTitle>Level22</ItemTitle>
<Menu>
<MenuSelected>false</MenuSelected>
<ChildMenuSelected>false</ChildMenuSelected>
</Menu>
</Item>
<Item>
<ItemType>Submenu</ItemType>
<ItemTitle>Level21</ItemTitle>
<Menu>
<MenuSelected>false</MenuSelected>
<!--if ChildMenuSelected = true -->
<ChildMenuSelected>true</ChildMenuSelected>
<Item>
<ItemType>Submenu</ItemType>
<ItemSubType>0</ItemSubType>
<Menu>
<!--if MenuSelected = true -->
<MenuSelected>true</MenuSelected>
<ChildMenuSelected>false</ChildMenuSelected>
<!-- whether this below item exists or not -->
<Item>
<ItemType>Submenu</ItemType>
<Menu>
<MenuSelected>false</MenuSelected>
<ChildMenuSelected>false</ChildMenuSelected>
</Menu>
</Item>
</Menu>
</Item>
<Item>
<ItemType>Submenu</ItemType>
<ItemTitle>Level32</ItemTitle>
<Menu>
<MenuSelected>false</MenuSelected>
<ChildMenuSelected>false</ChildMenuSelected>
</Menu>
</Item>
<Item>
<ItemType>Library</ItemType>
<ItemTitle>about_banner</ItemTitle>
</Item>
<Item>
<ItemType>ExternalLink</ItemType>
<ItemTitle>Google</ItemTitle>
</Item>
</Menu>
</Item>
</Items>
</MenuDataResult>