Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML formatted output using JAXB Marshaller

843834Jun 20 2006 — edited Jun 20 2006
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2006
Added on Jun 20 2006
1 comment
779 views