Ovanes Markarian wrote:
Hello *,

I use in my app Xalan SVN Head revision. In my case I initialize 
XalanStdOutputStream,
XalanOutputStreamPrintWriter, FormatterToXML to output xml into the file. 
PrintWriter is
initialized with StdOutStream, and FormatterToXML is initialized with 
PrintWriter.

The problem which I encounder is that the resulting XML file contains extra 
line feeds in hex 0D
OD 0A is it a bug or some kind of a setting which I did not find in the docs?
It's probably happening because you're using a file opened in text mode, rather than binary mode. This is an oddity of MS-DOS environments.

You should always use binary-mode streams when saving serialized XML, since you have no idea what the target encoding might be (nor should you care).

Dave

Reply via email to