• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Carriage returns and NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Carriage returns and NSXMLParser
      • From: Ian Jackson <email@hidden>
  • Prev by Date: Using OSMemoryBarrier() with KVO
  • Next by Date: Re: NSCollectionView and CoreData question
  • Previous by thread: Re: Using OSMemoryBarrier() with KVO
  • Next by thread: Re: Carriage returns and NSXMLParser
  • Index(es):
    • Date
    • Thread