XML-CDATA parsing with Xmllite

Problem:
When reading in CDATA elements, the carriage return (0xD) is omitted at the output.

Is there a proper way to tell Xmllite to save CR,
or do I always need a Replace call (LF, CRLF)?

Thanks IA

0
xml xmllite
source share
1 answer

This behavior (replacing "carriage return, line feed" with "line feed") is required by any appropriate XML parser (section 2.11 of the xml 1.0 specification: http://www.w3.org/TR/REC-xml/#sec-line -ends ). If you need both control characters in your output, you will need to add a carriage return to the line after parsing.

0
source share

All Articles