In my project I am facing a problem stating
The method getTextContent() is undefined for the type Node
I am currently using jdk
If you are getting this problem in eclipse IDE then fix it by doing :
Right click project, select Properties -> Java Build Path.
Though we will eventually need to use the "Order and Export" tab, it's a very long list, and there's actually a shortcut to finding the xml-apis-1.0.b2.jar file we want to move. Go to the Libraries tab which lists things alphabetically. Scroll down the the x's and single click that entry. Don't click the checkmark, just the name.
Now switch back to the Order and Export tab scroll down, you'll notice that library is still highlighted, pretty cool!
Click the Bottom button on the right, to move it all the way down. It should show up AFTER the special "JRE System Library [JVM ...." entry. And it should not have a checkmark.
follow below link more help: http://www.enterprisesearchblog.com/2009/09/fix-for-gettextcontent-is-undefined-for-the-type-node-for-solr-project-in-eclipse-ide.html