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 s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com