• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Basic XPath Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Basic XPath Question (From: "Mac QA" <email@hidden>)

  • Prev by Date: Re: how to hack my own apps
  • Next by Date: Re: scrollRangeToVisible from within mouseDown causing crash?
  • Previous by thread: Basic XPath Question
  • Next by thread: Autorelease question
  • Index(es):
    • Date
    • Thread