The method getTextContent() is undefined for the type Node 解决方法 选中项目--------project-->properties->java build path-->order and export 把JRE System 提升到顶部既可,前提记得是java版本是jdk1.5以上