Carriage returns and NSXMLParser
Carriage returns and NSXMLParser
- Subject: Carriage returns and NSXMLParser
- From: Brad Peterson <email@hidden>
- Date: Tue, 22 Apr 2008 05:16:36 -0700 (PDT)
Hi,
Have there been any recent changes to NSXMLParser with
respect to carriage returns?
I haven't noticed it previously, but I'm suddenly
seeing a lot of cases where carriage returns embedded
in data are returned as spaces by the parser.
That is:
<record id="429" data="A sample\nrecord" />
Is read in as if it were:
<record id="429" data="A sample record" />
I know that whitespace is technically ignored in XML,
but I didn't think it was necessarily discarded
either.
Is that the way it's supposed to be? Is there an
option I can set to change that?
Thanks!!
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden