Revision: 29222 http://sourceforge.net/p/bibdesk/svn/29222 Author: hofman Date: 2025-04-27 17:10:38 +0000 (Sun, 27 Apr 2025) Log Message: ----------- don't hard code the namespace in the xpaths
Modified Paths: -------------- trunk/bibdesk/BDSKSRUGroupServer.m Modified: trunk/bibdesk/BDSKSRUGroupServer.m =================================================================== --- trunk/bibdesk/BDSKSRUGroupServer.m 2025-04-27 16:40:20 UTC (rev 29221) +++ trunk/bibdesk/BDSKSRUGroupServer.m 2025-04-27 17:10:38 UTC (rev 29222) @@ -280,7 +280,7 @@ if (nil != document) { NSXMLElement *root = [document rootElement]; - NSString *countString = [[[root nodesForXPath:@"/zs:searchRetrieveResponse[1]/zs:numberOfRecords[1]" error:NULL] firstObject] stringValue]; + NSString *countString = [[[root nodesForXPath:@"/*:searchRetrieveResponse[1]/*:numberOfRecords[1]" error:NULL] firstObject] stringValue]; availableResults = [countString integerValue]; @@ -310,7 +310,7 @@ if (nil != document) { NSXMLElement *root = [document rootElement]; - NSArray *records = [root nodesForXPath:@"/zs:searchRetrieveResponse[1]/zs:records[1]/zs:record/zs:recordData[1]/*[1]" error:NULL]; + NSArray *records = [root nodesForXPath:@"/*:searchRetrieveResponse[1]/*:records[1]/*:record/*:recordData[1]/*[1]" error:NULL]; NSMutableArray *pubs = [NSMutableArray array]; BDSKStringType stringType = BDSKStringTypeUnknown; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit