I have a xml document like this

&lt;Products&gt;
  &lt;Product Name="Mobile Device" Code="10000000000000000006"&gt;
    &lt;Providers&gt;
        &lt;Provider Name="VODA" Code="VODA"&gt;
            &lt;Menus&gt;
                &lt;Menu  Name="Home" Url="TopModelsNew.aspx" DisplayOrder="1" NewWindow="0"/&gt;
                &lt;Menu  Name="Top Queries" Url="TopIssues.aspx" DisplayOrder="2" NewWindow="0"/&gt;
                &lt;Menu  Name="Error Codes" Url="PCErrors.aspx" DisplayOrder="3" NewWindow="0"/&gt;
            &lt;/Menus&gt;
        &lt;/Provider&gt;
    &lt;/Providers&gt;
&lt;/Product&gt;




I want to find all the menu where Product Code="10000000000000000006" and Provider Code="VODA" in a list.
The result should be like



  Name    Url            DisaplayOrder 
  Home    TopModels      0


I was trying linq to xml as follows

 XDocument xdoc = XDocument.Load(Server.MapPath("~/App_Data/LeftMenu.xml"));
        var products = from product in xdoc.Descendants("Product") where
        new{
                 .....    
            };


I am not able to find how to get the list.


Question: Is there a way to automatically run scripts based on conditions on PC/Mac/Linux, like Tasker for Android?
Answer: A Mac solution that I discovered myself recently is ControlPlane.


  A very useful application developed as a fork of the MarcoPolo project. MarcoPolo brings context-aware computing to your portable Mac computer.
  
  It allows your computer to determine its context through gathering evidence from your environment (evidence sources), using flexible rule-based fuzzy matching to make an educated guess (rules), and then performing arbitrary actions upon changing context (actions).
  
  The concept of contexts is a generalisation of a location, and encompasses more than just where your computer is. A context might represent what you are doing, or what else is going on around you.
  
  It quietly stays in the status bar at the top of your screen (right-hand side of the menu bar), from where it can be configured to your own needs.