Re: NSXMLParser and NSDocument
Re: NSXMLParser and NSDocument
- Subject: Re: NSXMLParser and NSDocument
- From: Marcel Weiher <email@hidden>
- Date: Thu, 30 Apr 2009 13:06:10 -0700
On Apr 30, 2009, at 12:36 , Jeffrey Oleander wrote:
%S specifies a null-terminated array of 16-bit unicode
characters. What you're passing is an NSString object.
So the specifier should be the object specifier, %@.
Yes, that is what I had tried first. Still, the warning
comes and goes.
Then it is something else and not that particular format string.
That leaves only, what's the namespaceURI parameter in
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString
*)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:
(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
The examples do not show and the reference says "namespaceURI
If namespace processing is turned on, contains the URI for the
current namespace as a string object." so I'm going to let it be an
empty string.
This is the XML namespace and it is a message that is sent to you, so
you don't get to set the parameter.
Spec: http://www.w3.org/TR/REC-xml-names/
Tutorial: http://www.w3schools.com/XML/xml_namespaces.asp
Marcel
_______________________________________________
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