The method getTextContent() is undefined for the type Node
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://blog.51cto.com/kevdmx/705942