title: Read certain child elements from specific parent element
body: <p>Example XML;</p>
  
  <pre><code>&lt;root&gt;
   &lt;cmdset&gt;Set 1
       &lt;comment&gt;Comment 1 here.&lt;/comment&gt;
       &lt;cmd&gt;Command 1&lt;/cmd&gt;
       &lt;cmd&gt;Command 2&lt;/cmd&gt;
   &lt;/cmdset&gt;
  
   &lt;cmdset&gt;Set 2
       &lt;comment&gt;Comment 2 here.&lt;/comment&gt;
       &lt;cmd&gt;Command 3&lt;/cmd&gt;
       &lt;cmd&gt;Command 4&lt;/cmd&gt;
   &lt;/cmdset&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Currently I have a listbox which populates the <code>&lt;cmdset&gt;</code> elements. Code is;</p>
  
  <pre><code>    Dim doc As XmlDocument = New XmlDocument()
      doc.Load("help.xml")
      For Each textNode As XmlText In doc.SelectNodes("//cmdset/text()")
          listCmdSet.Items.Add(textNode.InnerText)
      Next
  </code></pre>
  
  <p>Which outputs to the listbox;</p>
  
  <pre><code>Set 1
  Set 2
  </code></pre>
  
  <p>I now want to be able to process certain child elements within a particular <code>&lt;cmdset&gt;</code> element, only the <code>&lt;cmd&gt;</code> elements in this example, not the <code>&lt;comment&gt;</code> element. So if Set 1 is selected in the listbox, I only want to process the text "Command 1" and "Command 2".</p>
  
  <p>I have been advised that giving the elements an ID or a name would make things easier but I would like to avoid this where possible as I intend the XML to be editable by end users (sometimes not very technical) so am trying to keep things simple as possible.</p>
  
  <p>I have tried various different ideas I had but to no avail, I am new to XML (got the code to populate the listbox from SO) so if anything I have done so far is bad practice, please shout up.</p>