The method getTextContent() is undefined for the type Node
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
J2EE 里的 xml-apis.jar 下的 org.w3c.dom 干扰了 Java 的类查找 . 使用 JDK 的包就好了 , 方法是 , 调整 Jar 库的优先级 , 如下图 :
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
![](https://s1.51cto.com/attachment/201111/122745362.png)