title: Using XPath to get child elements
body: <p>I'm trying to use DocumentBuilder and XPath to parse an XML document with structure like:</p>
  
  <pre><code>&lt;questionnaire&gt;
    &lt;item&gt;
      &lt;question&gt;How have you been?&lt;/question&gt;
      &lt;response&gt;Great&lt;/response&gt;
      &lt;response&gt;Good&lt;/response&gt;
      &lt;response&gt;So-so&lt;/response&gt;
      &lt;response&gt;Bad&lt;/response&gt;
      &lt;response&gt;Rather not answer&lt;/response&gt;
    &lt;/item&gt;
  &lt;/questionnaire&gt;
  </code></pre>
  
  <p>To access question I've done this (which works):</p>
  
  <pre><code>expression = "/questionnaire/item[" + i + "]/question";
  setQuestion(xmlReader.read(expression, XPathConstants.STRING).toString());
  </code></pre>
  
  <p>Now I need some way to create a list of string based on the response items. The number of responses is variable so one question could have any number of responses. Does anyone know how to do this?</p>
  
  <p>Thanks</p>