• 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: NSXMLElement & Xpath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLElement & Xpath


  • Subject: Re: NSXMLElement & Xpath
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 6 Dec 2007 11:42:00 +0000

On 6 Dec 2007, at 11:24, Alexander Griekspoor wrote:

Thanks Alastair, the Xquery engine unfortunately reports "{" and "}" as invalid tokens so /author[1]/{http://arxiv.org/schemas/ atom}affiliation[1] won't work either.
The only thing I could do was to resolve to iterating over the children of the author element and ask for their names.

Hmmm. That's a shame (and arguably a bug, since it makes the Cocoa XPath implementation incompatible with most others). The {} "universal name" syntax isn't specified in the XPath standard, but it is common to almost all implementations and was defined by James Clark (the same chap who wrote the standard).


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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: 
 >NSXMLElement & Xpath (From: Alexander Griekspoor <email@hidden>)
 >Re: NSXMLElement & Xpath (From: Alastair Houghton <email@hidden>)
 >Re: NSXMLElement & Xpath (From: Alexander Griekspoor <email@hidden>)

  • Prev by Date: Re: NSXMLElement & Xpath
  • Next by Date: [JOB] Cocoa Developer in Stockholm, Sweden
  • Previous by thread: Re: NSXMLElement & Xpath
  • Next by thread: Re: NSStatusItem position problem
  • Index(es):
    • Date
    • Thread