The method getTextContent() is undefined for the type Node 的解决办法(eclipse)

注明出处吧http://www.cnblogs.com/edwardlauxh/archive/2012/07/01/2572249.html

 

eclipse 中 如果加入了 其他了xfire 等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The method getTextContent() is undefined for the type Node 提示,解决方法如下:

project-->properties->java build path-->order and export  把JRE System 提升到顶部既可,前提记得是java版本是jdk1.5以上

posted @ 2014-01-02 16:54  junfantasy  Views(308)  Comments(0Edit  收藏  举报