• 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: nodesForXPath almost always returns no objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >nodesForXPath almost always returns no objects (From: Ryan Homer <email@hidden>)
 >Re: nodesForXPath almost always returns no objects (From: Stephen Deken <email@hidden>)
 >Re: nodesForXPath almost always returns no objects (From: Ryan Homer <email@hidden>)
 >Re: nodesForXPath almost always returns no objects (From: Klaus Backert <email@hidden>)
 >Re: nodesForXPath almost always returns no objects (From: Ryan Homer <email@hidden>)

  • Prev by Date: Re: any api for the iphone/compiler?
  • Next by Date: Should I use CALCore.framework?
  • Previous by thread: Re: nodesForXPath almost always returns no objects
  • Next by thread: Re: nodesForXPath - is this correct behaviour?
  • Index(es):
    • Date
    • Thread