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!

Write StringBuffer to XML file

843834Jul 8 2008 — edited Jul 8 2008
Hey all,
I'm facing a problem about writing some data to an XML file. I retreive the data from a database and write them on a StringBuffer as XML (including tags etc). When i try to print the StringBuffer to an XML file it is printed in a different way. Some strange characters appear on the start and the new line character(\n) is printed as a square without adding a new line on the file.
Does anyone knows how to solve this? Any help is appreciated.
Tnx in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2008
Added on Jul 8 2008
2 comments
254 views