项目报错:The method getTextContent() is undefined for the type Node

古城微笑少年丶 2022-06-14 03:53 293阅读 0赞

一、问题描述

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

20170608231606421

二、解决方法

project—>properties->java build path—>order and export

20170608231812841

把JRE System 提升到顶部既可

发表评论

表情:
评论列表 (有 0 条评论,293人围观)

还没有评论,来说两句吧...

相关阅读