title: Read Next Node in XML (Linq to XML C#)
body: <p>I have an XML document (without attributes) that is setup like this:</p>
  
  <pre><code>&lt;variables&gt;
      &lt;variable&gt;
          &lt;name&gt;Name_Value&lt;/name&gt;
          &lt;value&gt;Value of Entry&lt;/value&gt;
      &lt;/variable&gt;
      &lt;variable&gt;
          &lt;name&gt;Name_Value2&lt;/name&gt;
          &lt;value&gt;Value of Entry2&lt;/value&gt;
      &lt;/variable&gt;
  &lt;/variables&gt;
  </code></pre>
  
  <p>I have used LINQ to XML to get a list of all the <code>&lt;name&gt;</code> values in the document. These name values are displayed in a listbox control in alphabetical order (which is <em>not</em> the order of the names in the XML document).</p>
  
  <p>When an item is selected in the listbox, I want to pass the name of the item to a method that will search the XML document for that value within the <code>&lt;name&gt;</code> node. Once found, I want to find the next node (i.e., the <code>&lt;value&gt;</code> node) and return it's value as a string.</p>
  
  <p>I've tried all sorts of things to get this information, but apparently I don't know enough about LINQ to XML to get this work. Can only provide a solution for this?</p>