Unable to allow import of org.apache.xml.serialize.XMLSerializer

When I try to import the org.apache.xml.serialize.XMLSerializer file, I got the following msg error:

The import org.apache.xml.serialize.XMLSerializer cannot be resolved 

Can someone tell me the reason? Thanks!!

+7
source share
1 answer

You are missing xercesImpl-2.9.0.jar from your build path. If you are using Maven, you can add a dependency:

 <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.9.0</version> </dependency> 
+6
source

All Articles