title: How to take content from two same nodes separately?
body: <p>I have HTML file with list of product names and prices </p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;label&gt;
        &lt;span class="name"&gt;Name 1&lt;/span&gt;
        &lt;span class="price"&gt;3.99&lt;/span&gt;
      &lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;label&gt;
        &lt;span class="name"&gt;Name 2&lt;/span&gt;
        &lt;span class="price"&gt;5.49&lt;/span&gt;
      &lt;/label&gt;
    &lt;/li&gt;
  ...
  &lt;/ul&gt;
  </code></pre>
  
  <p>and need to take names and prices from each <code>&lt;label&gt;</code> separately.
  I'm using Nokogiri to parse HTML file and tried </p>
  
  <pre><code>file.xpath('//ul/li/label').each do |item|
    puts item.content
  end
  </code></pre>
  
  <p>but, as you may have guessed, it returns both name and price.</p>