XDocument xdoc = XDocument.Load(Server.MapPath("~/App_Data/LeftMenu.xml"));
var menus = xdoc.Descendants("Menu").Where(x =&gt;
    x.Ancestors("Product").First().Attribute("Code").Value == "10000000000000000006" &amp;&amp;
    x.Ancestors("Provider").First().Attribute("Code").Value == "VODA");


With some assumptions to the source XML document:


&lt;Menu&gt; node must and only has one &lt;Product&gt; ancestor node
&lt;Menu&gt; node must and only has one &lt;Provider&gt; ancestor node


linq to xml query with all attributes
I'm wondering which option is best for an iPhone app using a hamburger menu (placed at the top left):


The menu is persistent on every single page even when the user goes
to a sub-level.
When the user goes to a sub-level, the hamburger menu is replaced by a back button or a button whose label is the name of last page visited.
Both. The menu is persistent on every page and a back button appears when needed.


Thanks for your help :)
