getTextContent()方法会出现The method getTextContent() is undefined for the type Node 提示

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 @ 2017-05-08 10:40  superAnny  阅读(352)  评论(0编辑  收藏  举报