[Expat-discuss] XML_Parse( ) Stripping the '\r' characters from the XML message
fdrake at acm.org
Tue Aug 16 00:47:40 CEST 2011
On Mon, Aug 15, 2011 at 2:44 PM, Swapnil Barai (sbarai)
<sbarai at cisco.com> wrote:
> Is this a known issue and is there a workaround to overcome this.
This is correct behavior. The line separators \r\n and \r (normally found on
Mac OS 9 and earlier) are normalized to \n.
If you want to encode the \r en the XML, you need to use a character reference:
Fred L. Drake, Jr. <fdrake at acm.org>
"A person who won't read has no advantage over one who can't read."
--Samuel Langhorne Clemens
More information about the Expat-discuss