• 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
NSXMLParser and character entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser and character entities?


  • Subject: NSXMLParser and character entities?
  • From: Kai <email@hidden>
  • Date: Fri, 12 Sep 2008 23:56:36 +0200

When NSXMLParser hits a character entity like &auml; (-> German umlaut 'ä'), it sends parser:resolveExternalEntityName:systemID: to its delegate and if this is not implemented or returns nil, parser:parseErrorOccurred: is called with NSXMLParserUndeclaredEntityError.

Am I supposed to resolve all these character entities myself? And if so, what should the NSData object returned by parser:resolveExternalEntityName:systemID: contain? Unicode? Which Unicode encoding?

But this can’t be, can it? I must be missing something simple.

Thanks for any hints
Kai



_______________________________________________

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: NSXMLParser and character entities?
      • From: Nathan Kinsinger <email@hidden>
  • Prev by Date: when should my NSWindowController be released?
  • Next by Date: Re: NSTableView works in 10.5 but not in 10.4
  • Previous by thread: Re: when should my NSWindowController be released?
  • Next by thread: Re: NSXMLParser and character entities?
  • Index(es):
    • Date
    • Thread