Re: nodesForXPath does not seem to work in Address Book Plug-Ins
Re: nodesForXPath does not seem to work in Address Book Plug-Ins
- Subject: Re: nodesForXPath does not seem to work in Address Book Plug-Ins
- From: Lars von Wedel <email@hidden>
- Date: Thu, 7 Jun 2007 09:07:31 +0200
The routine works fine. I use it in several places. maybe likely
your XPath expression does not yield any results ?
Lars
Am 07.06.2007 um 07:56 schrieb Gernot Poetsch:
Hi!
Thanks for the replies! Yeah, I checked for the error, and it is
nil... I left the error check out of the example code to keep it at
the smallest possible size. I think I'll file a bug report and look
for alternatives to using XPath...
cheers,
Gernot.
On 6/7/07, Tomas Franzén <email@hidden> wrote:
On 6 jun 2007, at 21.07, Gernot Poetsch wrote:
> I've got a strange problem developing an Address Book Plug-in.
In the
> plugin I parse XML-Data, but somehow -[NSXMLDocument
> nodesForXPath:error:] does always return an empty array.
> NSArray *xPathResults = [document nodesForXPath:@"." error:NULL];
Hi,
Have you tried using the error argument to see if there's actually an
error reported?
Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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