You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Arnaud Le Hors <le...@us.ibm.com> on 2001/02/15 03:49:23 UTC

Re: carriage return in attribute not preserved

[Please use the new mailing list xerces-j-user for this type of
questions. Thanks.]

You need to use a character entity reference:

<x a="hello&#xD;world"/>

Otherwise, the carriage return is swallowed by the attribute value
normalization as specified in the XML 1.0 spec. See
http://www.w3.org/TR/REC-xml#AVNormalize
-- 
Arnaud  Le Hors - IBM Cupertino, XML Strategy Group