title: Fetching multiple values using xmllint
body: <p>I'd like to use xpath from xmllint to fetch a hostname and a serial number.</p>
  
  <p>Here is the XML</p>
  
  <pre><code>&lt;hosts&gt;
   &lt;host name="blah001" serial="ABC001"&gt;
    &lt;moreinfo /&gt;
   &lt;/host&gt;
   &lt;host name="blah002" serial="ABC002"&gt;
    &lt;moreinfo /&gt;
   &lt;/host&gt;
   ..
  &lt;/hosts&gt;
  </code></pre>
  
  <p>I can fetch all serials with host name blah*:</p>
  
  <pre><code>/ &gt; cat //hosts/host[starts-with(@name,"blah")]/@serial
   -------
   serial="ABC001"
   -------
   serial="ABC002"
  </code></pre>
  
  <p>But I also want to see which hostname had that serial. Is that possible?</p>