当我尝试导入 org.apache.xml.serialize.XMLSerializer 时,我收到以下错误消息:
The import org.apache.xml.serialize.XMLSerializer cannot be resolved
谁能告诉我原因?谢谢!!
您的构建路径中缺少xercesImpl-2.9.0.jar。如果您使用的是 Maven,则可以添加依赖项:
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.0</version>
</dependency>