• 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: NSXML Parsing Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXML Parsing Problem


  • Subject: Re: NSXML Parsing Problem
  • From: Dave <email@hidden>
  • Date: Fri, 26 Mar 2010 02:34:59 +0000

Hi Jens,

Thanks for taking the time to reply. We are a startup and basically just trying to get thing going with what we have. I'm downloading the XML data via a URL and I could just change the database and strip out the offending characters. I was wondering if changing the XML charset would solve the problem? From searching the Web I think the problem could be that we are assuming UTF-8, I was wondering if we changed it to one of the ISO char sets if this would solve it.

Maybe a cool option for NSXML would be to be able to specify the & pound ; sequence and have it map it to whatever.......

Thanks again
Dave


On 25 Mar 2010, at 23:13, Jens Alfke wrote:


On Mar 25, 2010, at 8:47 AM, Dave wrote:

I am getting an error using NSXMLParser if it encounters a British Pound Sign - it's encoded as & pound ; (minus the spaces).
Any idea on how to solve this??

Basic XML only defines a handful of character entities. The other common ones are part of HTML. Are you sure this document is valid XML?


I'm more familiar with NSXMLDocument than NSXMLParser, so I'm not sure how you tell the latter to handle arbitrary character entities. Sorry I can't be more help.

—Jens



_______________________________________________

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: NSXML Parsing Problem
      • From: Jens Alfke <email@hidden>
    • Re: NSXML Parsing Problem
      • From: Keary Suska <email@hidden>
    • Re: NSXML Parsing Problem
      • From: Jack Carbaugh <email@hidden>
References: 
 >NSXML Parsing Problem (From: Dave <email@hidden>)
 >Re: NSXML Parsing Problem (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Trouble forking my project
  • Next by Date: Re: NSXML Parsing Problem
  • Previous by thread: Re: NSXML Parsing Problem
  • Next by thread: Re: NSXML Parsing Problem
  • Index(es):
    • Date
    • Thread