• 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
Re: Carriage returns and NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carriage returns and NSXMLParser


  • Subject: Re: Carriage returns and NSXMLParser
  • From: Daniel Staal <email@hidden>
  • Date: Wed, 23 Apr 2008 10:20:28 -0400

--As of April 23, 2008 9:04:21 PM +1200, Ian Jackson is alleged to have said:

Whitespace is preserved, not ignored. But in your example, the new line
is in the attribute value, so I don't suppose XML cares too much what's
between the quotation marks.
So if you can obtain the value of the data attribute, and print the value
to the console, does it come out with a space instead of the \n?

--As for the rest, it is mine.

To be more specific: XML considers whitespace significant inside element _content,_ but not within the elements themselves. NSXML* deal with this very close to the spec, as far as I can tell.

So the behavior seen by the parent is normal, and could well happen with any compliant XML parser.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
_______________________________________________

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


References: 
 >Carriage returns and NSXMLParser (From: Brad Peterson <email@hidden>)
 >Re: Carriage returns and NSXMLParser (From: Ian Jackson <email@hidden>)

  • Prev by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Next by Date: Re: Complex data for webservices
  • Previous by thread: Re: Carriage returns and NSXMLParser
  • Next by thread: properties implementation
  • Index(es):
    • Date
    • Thread