Compilation error in Node.getTextContent for jdk 6
<p>java Source code not compiling with jdk 6.</p>

<pre><code> import org.w3c.dom.Node;
 Node node = list.item(0);
 String txtContent = node.getTextContent();
</code></pre>

<p>getTextContent() not found in the jdk 6</p>

<p>how can solve this compilation issue.</p>
