title: Extracting multiple nodes from an XML document with xmllint
body: <p>I am trying to use xmllint in order to extract multiple nodes under multiple parent nodes called <code>//item</code>, as follows:</p>
  
  <pre><code>&lt;item&gt;
          &lt;title&gt;A title&lt;/title&gt;
          &lt;link&gt;http://www.example.com&lt;/link&gt;
          &lt;pubDate&gt;Mon, 08 Aug 2016 09:04:11 +0000&lt;/pubDate&gt;
          &lt;dc:creator&gt;&lt;a name&gt;&lt;/dc:creator&gt;
          &lt;location&gt;&lt;a name&gt;&lt;/dc:creator&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>I would normally do this if I simply want to extract of node (for example title):</p>
  
  <pre><code>xmllint --shell myXml.xml 
  </code></pre>
  
  <p>and then <code>cat //item/title</code>, this will only retrieve all the title tags and their values. Can i use xmllint to get a subset of nodes, for example:</p>
  
  <pre><code>        &lt;title&gt;A title&lt;/title&gt;
          &lt;link&gt;http://www.example.com&lt;/link&gt;
          &lt;pubDate&gt;Mon, 08 Aug 2016 09:04:11 +0000&lt;/pubDate&gt;
  </code></pre>
  
  <p>Thank you,</p>