title: Next node in xml with same element name
body: <p>I've been working on this problem for a few hours now and I have searched all around with no luck for a solution :( </p>
  
  <p>What I am trying to do is print out names of the nodes, what i have is the amount of nodes that exist so I know how many times to loop but am having the hardest of times retrieving the values</p>
  
  <p>What I have tried:</p>
  
  <pre><code>int num = Convert.ToInt32(queuecount);
  var jobs = QueueXML.SelectSingleNode(xpathjobsfilename).InnerText;
  PreviousQueue = jobs.ToString();
  
  //foreach(loop &lt; num)
  //{
  //    if (CurrentQueue == PreviousQueue)
  //    {
  
  //    }
  //    else
  //    {
  //        resultsListView.Items.Clear();
  //        resultsListView.Items.Add(jobs[num]);
  //    }
  //    loop++;
  //}
  
  foreach (char JobName in jobs.ToString())
  {
      if (CurrentQueue == PreviousQueue)
      {
      }
      else
      {
          resultsListView.Items.Clear();
          resultsListView.Items.Add(jobs[num]);
      }
  }  
  </code></pre>
  
  <p>Edit: Example XML</p>
  
  <pre><code> &lt;jobs&gt;
      &lt;job&gt;
        &lt;timeleft&gt;0:00:00&lt;/timeleft&gt;
        &lt;mb&gt;1419.60536003&lt;/mb&gt;
        &lt;msgid&gt;&lt;/msgid&gt;
        &lt;filename&gt;Extended_Final&lt;/filename&gt;
        &lt;mbleft&gt;1274.33209419&lt;/mbleft&gt;
        &lt;id&gt;nzo_i7qxxq&lt;/id&gt;
      &lt;/job&gt;
      &lt;job&gt;
        &lt;timeleft&gt;0:00:00&lt;/timeleft&gt;
        &lt;mb&gt;9.22459220886&lt;/mb&gt;
        &lt;msgid&gt;&lt;/msgid&gt;
        &lt;filename&gt;Video2&lt;/filename&gt;
        &lt;mbleft&gt;9.22459220886&lt;/mbleft&gt;
        &lt;id&gt;2m3dv5&lt;/id&gt;
      &lt;/job&gt;
    &lt;/jobs&gt;
  </code></pre>
  
  <p>I want to retrieve the  job details for each individual jobs</p>