Title: Retaining Carriage Return/Line Feed in attribute values
Xerces is behaving correctly. See http://www.w3.org/TR/REC-xml#AVNormalize for the rules regarding attribute value normalization. If whitespace is significant in your attribute values, your application will need to encode them in some way, then decode them before using them. This will be true of any specification-compliant implementation. If you modify Xerces' behavior, you'll no longer be using such an implementation, and there could be unintended consequences.
 
-----Original Message-----
From: Williamson, Siehnai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: Retaining Carriage Return/Line Feed in attribute values

Hi,

Is there a way to retain the carriage return and line feed characters in the attribute values.  I noticed that they were replaced with spaces. 

Is there a reason for this?  Would it affect the code if I retained these control characters?

Thanks.

Reply via email to