Re: [iphone] Libxml2 with a wrapper to NSArray
Re: [iphone] Libxml2 with a wrapper to NSArray
- Subject: Re: [iphone] Libxml2 with a wrapper to NSArray
- From: "Sean McBride" <email@hidden>
- Date: Thu, 3 Dec 2009 18:44:40 -0500
- Organization: Rogue Research Inc.
On 12/3/09 6:40 PM, Philip Vallone said:
>However, I am not sure how to call this :
>
>NSArray *PerformHTMLXPathQuery(NSData *document, NSString *query)
>
>
>Here is my code:
>
> NSString *filePath = [[NSBundle mainBundle] pathForResource:@"manifest"
>ofType:@"xml"];
> NSData* xmlData = [filePath dataUsingEncoding:NSUTF8StringEncoding];
> NSArray *resultNodes = [NSArray array];
> resultNodes = PerformXPathQuery(xmlData, "//mynode");
>
>Here is my error:
>
>warning: implicit declaration of function 'PerformXPathQuery'
"//mynode" is not an NSString. You want @"//mynode". The @ makes it an
NSString.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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