Using com.sun.org.apache.xml.internal.serialize.XMLSerializer
and com.sun.org.apache.xml.internal.serialize.OutputFormat
causes some errors when compiling using java 1.6.
The solution I found is by using org.apache.xml.serialize.XMLSerializer
and org.apache.xml.serialize.OutputFormat
after adding xerces.
The problem is that theses classes are deprecated. What can I use without to replace them without touching the code ?
Thnx
This is the dependency I used :
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.1</version>
</dependency>
We can use the LSSerializer class from the package org.w3c.dom.ls