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

一、问题描述


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


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



二、解决方法


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


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


把JRE System 提升到顶部既可