Re: Basic XPath Question
Re: Basic XPath Question
- Subject: Re: Basic XPath Question
- From: Jens Alfke <email@hidden>
- Date: Thu, 3 Apr 2008 13:51:13 -0700
On 3 Apr '08, at 1:40 PM, Mac QA wrote:
Does the nodesForXPath:error: API in Cocoa just not support the
features of XPath for matching nodes with specific attribute values?
Or am I just doing something totally wrong? Any suggestions or
pointers to examples would be greatly appreciated. Thanks!
That should all work. I just took a look at the Apple "NewMusic"
sample, which uses XPath to scrape info out of eMusic's RSS feed
entries, and it uses path expressions like
//a[starts-with(@href,'http://www.emusic.com/artist/')]/@href
It's not exactly what you're doing, but it's definitely matching on
attribute values. You might look at the sample code for clues.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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