hmm, can someone try this out ? the issue kind of frustrates my progress...
thx.


From: Saw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 10:09 PM
To: [EMAIL PROTECTED]
Subject: XERCES - SAXParser: newlines in CDATA sections

hi folks.
 
im using xerces 2.1 (sax parser) for XML data parsing.
 
one of the tags in my source XML contains a CDATA section, with a chunk of text inside that has CRLF newlines.
 
the problem is simple: the parser returns the content of CDATA with all CRLF newlines converted to LF.
is this behaviour by design ? i thought the content of CDATA should be untouched by an XML parser.
 
is it a bug or there are some switches to control this behaviour of the parser ?
 
this behaviour of the parser ruins newlines, i am unable to restore the original content of CDATA - it is unknown to me whether there was a CRLF or simply LF initially - they both are LF after parsing.
 
thx.
 

Reply via email to