You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/08/17 01:10:57 UTC

DO NOT REPLY [Bug 20865] - newlines '\n' appearing in strings not converted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20865>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20865

newlines '\n' appearing in strings not converted

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From craig.mcclanahan@sun.com  2003-08-16 23:10 -------
Digester is giving you back exactly what the XML parser is reading.  Using "\n"
is not the correct way to encode a newline character in XML; instead, you should
be using the "#xA" escape, or a literal newline character.  See the XML
Specification for more information.

In addition, I personally think it's bad form to use newlines in an attribute
value, because it will make the XML document very difficult to read.  Text with
embedded newlines should appear in the body of a nested element instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org