Reputation: 619
My code is
OutputFormat wOf = new OutputFormat( "XML", "ISO-8859-1", true );
help me to solve this warning....
Upvotes: 7
Views: 9468
Reputation: 719307
One solution is to not use that class.
Another solution is to ignore the warning. Looking at the class, I suspect that this is the only viable solution ... if you stick with the Sun XML stack.
(FWIW - this looks like a mistake on Sun's part in integrating the Apache XML stack into Java SE. The class should be in a different package that doesn't trigger this warning. The original Apache version is clearly not intended to be "internal use only". Another interpretation is that this is not a mistake, but something that Oracle intends to fix in a future release by providing a better API for controlling XML formatting.)
Upvotes: 5
Reputation: 2871
Use org.apache.xml.serialize.OutputFormat
instead of com.sun classes
Upvotes: 3