XML formatted output using JAXB Marshaller
843834Jun 20 2006 — edited Jun 20 2006Hi,
On a Windows platform, when I use the default UTF-8 encoding and request the JAXB Marshaller to produce formatted XML output to a file, it seems that it only outputs the Unix end-of-line character (Line Feed) between lines. This means that the output XML appears as one long string when opened with Notepad, which expects the end-of-line characters to be Carriage Return + Line Feed (the Windows version).
My question is why does the JAXB implementation not detect that it is running on a Windows platform and thus output CR+LF when formatting? Would there have been some fundamental problem with this?
How could one solve the Notepad problem?
Many thanks, Baljeet.