My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 75: TouchXML needs a "selectSingleNode" method
2 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Mar 2010


 
Reported by geek...@googlemail.com, Mar 4, 2010
It would be great to have a "selectSingleNode" or "nodeForXPath" method.

The implementation is quiet easy (not tested):

- (CXMLNode *)nodeForXPath:(NSString *)xpath error:(NSError **)error
{	
	NSArray *theNodes = [self nodesForXPath:xpath error:error];
	if ([theNodes count] > 0)
		return [theNodes objectAtIndex:0];	
	else
		return nil;
}


Mar 19, 2010
Project Member #1 jwight
That method is already there. Check CXMLNode_XPathExtensions.h
Status: Invalid

Powered by Google Project Hosting