title: Java XML Node Edit without Node.getTextContents()
body: <p>I'm using an old version of the JRE (1.4) where Node.getTextContents() and Node.setTextContents() are not available.  Is there a long way to do these actions still?</p>
  
  <p>Example XML:</p>
  
  <pre><code>&lt;MyEle&gt;4119&lt;MyEle/&gt;
  </code></pre>
  
  <p>Java:</p>
  
  <pre><code>//myEleNode is a Node found while traversing
  String nodeString = myEleNode.getTextContent();
  if(nodeString.equals("4119")){//do something}
  </code></pre>