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!

New line character and carriage return in XML, please help, thanks

843834Jan 31 2006 — edited Feb 2 2006
In XML, "
" is only the new line character. I have tried that. If you put that in your XML, for example:

<tag>line1&#10;line2&#10;line3</tag>

You will get the output as follow:

line1
____line2
________line3

(where ___ represents space)

The output that I want is actually like:

line1
line2
line3

So I would like to ask how I can do this.

Thanks,
Jackie
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2006
Added on Jan 31 2006
4 comments
784 views