title: Get content from xml in java
body: <p>I have the following xml file:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;company&gt;
      &lt;staff&gt;
          &lt;firstname&gt;yong&lt;/firstname&gt;
          &lt;lastname&gt;mook kim&lt;/lastname&gt;
          &lt;nickname&gt;mkyong&lt;/nickname&gt;
          &lt;salary&gt;100000&lt;/salary&gt;
      &lt;/staff&gt;
      &lt;staff&gt;
          &lt;firstname&gt;low&lt;/firstname&gt;
          &lt;lastname&gt;yin fong&lt;/lastname&gt;
          &lt;nickname&gt;fong fong&lt;/nickname&gt;
          &lt;salary&gt;200000&lt;/salary&gt;
      &lt;/staff&gt;
  &lt;/company&gt;
  </code></pre>
  
  <p>I'm using the sax parser to get the information from this file. Is there a way to get the complete content from an element?    </p>
  
  <p>Let say I identified the element "staff", how can I get:</p>
  
  <pre><code>&lt;firstname&gt;low&lt;/firstname&gt;
  &lt;lastname&gt;yin fong&lt;/lastname&gt;
  &lt;nickname&gt;fong fong&lt;/nickname&gt;
  &lt;salary&gt;200000&lt;/salary&gt;
  </code></pre>
  
  <p>?</p>