xpath id() function
xpath id() function
- Subject: xpath id() function
- From: Jonathan Wight <email@hidden>
- Date: Fri, 12 Aug 2005 14:35:09 -0400
Does the xpath function id() work inside "-[NSXMLNode
nodesForXPath:error:]"?
I should be able to call:
NSArray *theResult = [[[inNode rootDocument] rootElement]
nodesForXPath:@"id('tk421') error:&theError];
On an NSXMLElement that looks like this:
<things>
<sthing id="tk421">...</thing>
</things>
And get back the relevent set of nodes (in this example just a single
node)...
But instead I am getting an empty array returned and no error return
in the error parameter.
Jon.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden