最近一个项目在MyEclipse导入后总是报getTextContent() is undefined for the type Node错误。

Node“getTextContent() is undefined for the type Node”处理办法

 

经过查找原来是因为Node类为JDK中自带的(org.w3c.dom.Node),出现这个问题是因为项目中引入了xml-apis.jar包,导致Eclipse去找xml-apis.jar中的类,最终冲突而报错。

 

解决办法有两种:

1、删除掉xml-apis.jar包即可;

2、将项目的JAVA Build Path配置的“Order and Export”中将JDK的顺序排到xml-apis.jar上面即可;

Node“getTextContent() is undefined for the type Node”处理办法

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-09-23
  • 2021-06-04
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-04-22
  • 2021-06-04
相关资源
相似解决方案