title: Getting text content of element node of xml
body: <p>I am trying to get the text content of first node in this XML. First node (Deductible) is an element node, when I get the text content, I get <strong>"Calendar Year$1,500$1,500$3,000"</strong> instead of just <strong>"Calendar Year"</strong></p>
  
  <pre><code>&lt;Item type="Deductible" name="Deductible" id="a"&gt;Calendar Year
  &lt;Item type="Text" name="Individual" id="b"&gt;$1,500&lt;/Item&gt;
  &lt;Item type="Text" name="Individual Out-of-network" id="id_4"&gt;$1,500&lt;/Item&gt;
  &lt;Item type="Text" name="Family" id="c"&gt;$3,000&lt;/Item&gt;
  &lt;Item type="Text" name="Family Out-of-network:" id="id_5"&gt;$3,000&lt;/Item&gt;
  &lt;/Item&gt;
  </code></pre>
  
  <p>This is what I am trying</p>
  
  <pre><code>dbuilder = dbc.newDocumentBuilder();
  Document doc = dbuilder.parse(new InputSource(new StringReader(plan.getProvisions())));
  NodeList nl = doc.getElementsByTagName("Item");
  for(int i = 0 ; i &lt; nl.getLength(); i++){
      if(i == row){
        org.w3c.dom.Element e = (org.w3c.dom.Element)nl.item(i);
        value = e.getTextContent();
      }
  }
  </code></pre>