(该解决方案,本人亲测有效)
eclipse(或者myeclipse) 中 如果加入了 其他了xfire 等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The method getTextContent() is undefined for the type Node 提示。
解决方法如下:
右击项目–>properties–>java build path–>order and export 把JRE System Library提升到顶部即可,前提是jdk版本是1.5以上。
(如果有不懂的,欢迎留言提问哦)