Re: NSXMLElement & Xpath
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