Node.getTextContent() is undefined in Node

前端 未结 6 1681

In my project I am facing a problem stating

The method getTextContent() is undefined for the type Node

I am currently using jdk

6条回答
  •  有刺的猬
    2021-02-02 13:19

    You are probably having your project settings (assuming you are using Eclipse or some other IDE) to Java 1.4. Java 1.4's org.w3c.dom.Node class does not have that method (it was introduced in Java 5).

提交回复
热议问题