Re: NSXML Parsing Problem
Re: NSXML Parsing Problem
- Subject: Re: NSXML Parsing Problem
- From: Keary Suska <email@hidden>
- Date: Thu, 25 Mar 2010 20:58:17 -0600
On Mar 25, 2010, at 8:34 PM, Dave wrote:
> 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.......
My XML is a little rusty but IIRC this is an XML issue, and any XML parser would choke. You have to define (or perhaps more properly "declare") every named entity other than the pre-defined named entities such as >, < and &.
I believe you can use numeric references with impunity: &#nnn; but make sure it jives with your character encoding.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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