Re: nodesForXPath almost always returns no objects
Re: nodesForXPath almost always returns no objects
- Subject: Re: nodesForXPath almost always returns no objects
- From: Klaus Backert <email@hidden>
- Date: Wed, 10 Jan 2007 11:11:53 +0100
Am 09.01.2007 um 23:04 schrieb Ryan Homer:
Thanks for the information, Klaus.
Do you know what XPath query I could use to navigate the document?
When I try the following, it returns no elements:
NSXMLNode *n = [xmldoc rootElement];
NSArray *a = [n nodesForXPath:@"//soap:Body/
FindMembershipResponse" error:&error];
According to Stephen, the XPath query works without the xmlns
parameter. Is there some change in the XPath query string to
accommodate for this?
Ryan
Sorry, I don't know. But there is a XML-dev mailing list supporting
XML implementation and development; see <http://www.xml.org/xml/
xmldev.shtml>. And the XPath tutorial at <http://zvon.org/xxl/
XPathTutorial/Output/index.html> may help. BTW: if we proceed with
questions about XPath queries on the Cocoa-dev mailing list, someone
will tell us it's off-topic, I think ;-)
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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