title: How to select following sibling/XML tag using XPath
body: <p>I have an HTML file (from Newegg) and their HTML is organized like below.  All of the data in their specifications table is '<em>desc</em>' while the titles of each section are in '<em>name.</em>' Below are two examples of data from Newegg pages.</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td class="name"&gt;Brand&lt;/td&gt;
      &lt;td class="desc"&gt;Intel&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Series&lt;/td&gt;
      &lt;td class="desc"&gt;Core i5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Cores&lt;/td&gt;
      &lt;td class="desc"&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Socket&lt;/td&gt;
      &lt;td class="desc"&gt;LGA 1156&lt;/td&gt;
  </code></pre>
  
  <h2>    </h2>
  
  <pre><code>&lt;tr&gt;
      &lt;td class="name"&gt;Brand&lt;/td&gt;
      &lt;td class="desc"&gt;AMD&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Series&lt;/td&gt;
      &lt;td class="desc"&gt;Phenom II X4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Cores&lt;/td&gt;
      &lt;td class="desc"&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="name"&gt;Socket&lt;/td&gt;
      &lt;td class="desc"&gt;Socket AM3&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>In the end I would like to have a class for a CPU (which is already set up) that consists of a Brand, Series, Cores, and Socket type to store each of the data.  This is the only way I can think of to go about doing this:</p>
  
  <pre><code>if(parsedDocument.xpath(tr/td[@class="name"])=='Brand'):
      CPU.brand = parsedDocument.xpath(tr/td[@class="name"]/nextsibling?).text
  </code></pre>
  
  <p>And doing this for the rest of the values. How would I accomplish the nextsibling and is there an easier way of doing this?</p>