users@jaxb.java.net

How to preserve linefeed between tags?

From: Leonardo Chaves <lchaves_at_iname.com>
Date: Wed, 26 Feb 2003 08:08:28 -0700

Hi, all,

How can I preserve the linefeed between tags in the parsed
value? Example:

<myTag>some string \n with \n linefeed</myTag>

And getMyTag() returns:

some string
with
linefeed

Tried &#10;&#13; and &#x0A; instead of '\n', but it didn't work.

Thanks.