The method getTextContent() is undefined for the type Node错误
来源:互联网 发布:淘宝nike虎扑推荐店铺 编辑:程序博客网 时间:2024/05/17 04:50
导入SVN上的工程出现了这个错误
收集了一下错误原因
CSDN:
因为你调用的那个方法是jdk下的那个包里的类,而在web项目里却调用了J2EE里的xml-apis.jar下的org.w3c.dom。(实际上要调用的那个方法是在jdk下的rt.jar下的org.w3c.dom)。我也被这个问题困扰了很久,后来把jdk和J2EE在项目里的位置调整了下就好了,即让jdk在J2EE上面.
具体解决方法
eclipse 中 如果加入了 其他了xfire 等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The method getTextContent() is undefined for the type Node 提示,解决方法如下:
project-->properties->java build path-->order and export 把JRE System 提升到顶部既可,前提记得是java版本是jdk1.5以上
0 0
- The method getTextContent() is undefined for the type Node错误
- The method getTextContent() is undefined for the type Node错误
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- 解决方案:The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node 错误解决办法
- getTextContent()方法出现The method getTextContent() is undefined for the type Node提示
- The method getTextContent() is undefined for the type Element
- The method getTextContent() is undefined for the type Element
- leetcode ---- 143. Reorder List
- xcode snippet library
- 解决外网与内网或内网之间的通信,NAT穿透
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- 拦截进程创建(不会卡死桌面)
- The method getTextContent() is undefined for the type Node错误
- java设计模式之简单工厂模式
- NSdata 与 NSString,Byte数组,UIImage 的相互转换---ios开发 Objective-C
- Android 漂亮的日期选择控件Time-Selector
- 组合模式(Composite Pattern)
- JS内置对象
- 前端web各种工具开发网站
- JAVA集合的应用之——集合的类型和各自的特性
- python 简单socket编程