He is correct. The normalization of new lines happens at a low level within
the parser (by design and by the standard) so that the stream of characters
that comes into the parser are already normalized, so clearly that would
mean that even CDATA sections are affected.

The reasoning is that new lines have different forms on different platforms,
and the normalization allows them to be treated consistently by XML parsers
and by the programs that pull data out of the parser after parsing.

If you want these things to come through the parser, you must encode them in
some way that will be ignored by the parser, before feeding the data to the
parser, and then you can expand them (or contract them according to how you
look at it) on the other side when you pull the data out of the parser for
your own use.

Anyway, blame the creators of XML if you have a problem with it, since they
defined how and when normalization is done.

-------------------------------------
Dean Roddey
The Charmed Quark Controller
[EMAIL PROTECTED]
www.charmedquark.com
 


-----Original Message-----
From: Saw [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 12:57 PM
To: [EMAIL PROTECTED]
Subject: RE: XERCES - SAXParser: newlines in CDATA sections


"CDATA sections don't have any affect on normalization:
http://www.w3.org/TR/REC-xml/#sec-cdata-sect";

- I don't see how this follows from the section u've given. That was the
question in the first place, and 2.7 does not answer it, neither did u.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to