Does the XML specification states that parser need to convert \n\r to \n always, even when \n\r appe

Posted by mic.sca on Stack Overflow See other posts from Stack Overflow or by mic.sca
Published on 2010-05-12T09:14:14Z Indexed on 2010/05/12 10:14 UTC
Read the original article Hit count: 200

Hi, I've stumbled in a problem handling the \line-feed and \carriage-return characters in xml. I know that, according to http://www.w3.org/TR/REC-xml/#sec-line-ends, xml processors are required to replace any "\n\r" or lone "\r" sequences with "\n".
The specification states that this has to be the behaviour for handling any "external parsed entity", does this apply to CDATA sections inside of an element as well?
thank you,

Michele

I'm sure that msxml library for example converts every \n\r" or lone "\r" sequences to "\n", regardless of their being in a cdata section or not.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about cdata