现象:
项目报错The method getTextContent() is undefined for the type Node.
原因:
项目中如果加入了xfire等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The method getTextContent() is undefined for the type Node.提示。
解决办法:
前提是项目使用的Java版本是JDK1.5以上。
选中项目右键,Build Path -> Configure Build Path... -> Order and Export,把JRE System Library提升到顶部即可。