Re: XML_Parse( ) Stripping the '\r' characters from the XML message

Fred Drake <[email protected]> Mon, 15 Aug 2011 18:47:40 -0400
Newsgroups gmane.text.xml.expat.general
Message-ID <CAFT4OTFbHTZ4TELXUQPLSbL5v=RR7S+mQMNFyD0YNkTNfVc20w@mail.gmail.com>
On Mon, Aug 15, 2011 at 2:44 PM, Swapnil Barai (sbarai)
<[email protected]> 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 refere=
nce:

    &#13;


   -Fred

-- =

Fred L. Drake, Jr.=A0 =A0 <fdrake at acm.org>
"A person who won't read has no advantage over one who can't read."
=A0=A0 --Samuel Langhorne Clemens