In my project I am facing a problem stating
The method getTextContent() is undefined for the type Node
I am currently using jdk
You are probably having your project settings (assuming you are using Eclipse or some other IDE) to Java 1.4. Java 1.4's org.w3c.dom.Node class does not have that method (it was introduced in Java 5).