what to read parent xml by giving child value in .net
<p>xml:</p>

<pre><code>&lt;PrimaryLink&gt;
  &lt;LinkID&gt;p1&lt;/LinkID&gt;
    &lt;SecondaryLink&gt;
      &lt;LinkID&gt;s1&lt;/LinkID&gt;      
        &lt;LeftMenu&gt;
          &lt;NavLinks&gt;
            &lt;LinkID&gt;n1&lt;/LinkID&gt;
          &lt;/NavLinks&gt;
          &lt;NavLinks&gt;
            &lt;LinkID&gt;n2 &lt;/LinkID&gt;               
          &lt;/NavLinks&gt;
        &lt;/LeftMenu&gt;
    &lt;/SecondaryLink&gt;  
&lt;/PrimaryLink&gt;
</code></pre>

<p>c#:</p>

<pre><code>var menuItems1 = from c in xMenuElement.Elements("GlobalNavigation").Elements("PrimaryLink")
                 select c;
</code></pre>

<p>i what the ans like p1->s1->n1 by giving n1 as input </p>
