title: Getting XML child elements with XPath
body: <p>I have this XML:</p>
  
  <pre><code>&lt;root&gt;
    &lt;items&gt;
      &lt;item1&gt;
        &lt;tag1&gt;1&lt;/tag1&gt;            
        &lt;sub&gt;
          &lt;sub1&gt;10 &lt;/sub1&gt;
          &lt;sub2&gt;20 &lt;/sub2&gt;
        &lt;/sub&gt;
      &lt;/item1&gt;
  
      &lt;item2&gt;
        &lt;tag1&gt;1&lt;/tag1&gt;            
        &lt;sub&gt;
          &lt;sub1&gt; &lt;/sub1&gt;
          &lt;sub2&gt; &lt;/sub2&gt;
        &lt;/sub&gt;        
      &lt;/item2&gt;
    &lt;/items&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I want to get the <code>item1</code> element and the name and values of the child elements.</p>
  
  <p>That is, i want to get: <code>tag1</code> - 1<code>,</code>sub1<code>-</code>10<code>,</code>sub2<code>-20</code>.</p>
  
  <p>How can i do this? so far i can only get elements without children.</p>