| Issue 75: | TouchXML needs a "selectSingleNode" method | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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
Status:
Invalid
|