您的位置:首页 > Web前端 > Node.js

The method getTextContent() is undefined for the type Node

2017-07-19 17:01 176 查看
(该解决方案,本人亲测有效)

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以上。

(如果有不懂的,欢迎留言提问哦)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse java myeclipse