The method getTextContent() is undefined for the type Node

来源:互联网 发布:淘宝流量来源查询 编辑:程序博客网 时间:2024/05/16 19:30

(该解决方案,本人亲测有效)
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以上。
(如果有不懂的,欢迎留言提问哦)

阅读全文
0 0