title: Extracting child nodes data from given node
body: <p>I want to use DOM4j for parsing xml file in Java.</p>
  
  <p>I have this XML as an example: </p>
  
  <pre><code>&lt;request method="POST" url="/devices/test/planner" body="*"&gt;
    &lt;response statusCode="200"&gt;
      &lt;header&gt;
        &lt;headerParameters&gt;
          &lt;headerParameter name="Content-Type"&gt;
            Content-Type=application/xml
          &lt;/headerParameter&gt;
        &lt;/headerParameters&gt;
      &lt;/header&gt;
      &lt;body&gt;booking created!&lt;/body&gt;
    &lt;/response&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>Given the request (first node) node, how can I extract the child nodes data? </p>
  
  <p>For example getting the <code>&lt;response&gt;</code> status code, or the <code>&lt;headerParameter&gt;</code> name attributes? </p>