xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Roddey" <drod...@charmedquark.com>
Subject RE: XERCES - SAXParser: newlines in CDATA sections
Date Mon, 19 Apr 2004 21:09:54 GMT
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
droddey@charmedquark.com
www.charmedquark.com
 


-----Original Message-----
From: Saw [mailto:saw@hot.ee] 
Sent: Monday, April 19, 2004 12:57 PM
To: xerces-c-dev@xml.apache.org
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message