Revision: 22538
          http://sourceforge.net/p/bibdesk/svn/22538
Author:   hofman
Date:     2018-08-27 14:56:22 +0000 (Mon, 27 Aug 2018)
Log Message:
-----------
Get any node rather than first, this is probably more efficient and it should 
not matter for the searches it is used for

Modified Paths:
--------------
    trunk/bibdesk/DOMNode_BDSKExtensions.m

Modified: trunk/bibdesk/DOMNode_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/DOMNode_BDSKExtensions.m      2018-08-27 13:53:44 UTC (rev 
22537)
+++ trunk/bibdesk/DOMNode_BDSKExtensions.m      2018-08-27 14:56:22 UTC (rev 
22538)
@@ -57,7 +57,7 @@
 }
 
 - (DOMNode *)singleNodeForXPath:(NSString *)xpath {
-    DOMXPathResult *result = [[self ownerDocument] evaluate:xpath 
contextNode:self resolver:nil type:DOM_FIRST_ORDERED_NODE_TYPE inResult:nil];
+    DOMXPathResult *result = [[self ownerDocument] evaluate:xpath 
contextNode:self resolver:nil type:DOM_ANY_UNORDERED_NODE_TYPE inResult:nil];
     return [result singleNodeValue];
 }
 
@@ -77,7 +77,7 @@
 }
 
 - (DOMNode *)singleNodeForXPathExpression:(DOMXPathExpression 
*)xpathExpression {
-    DOMXPathResult *result = [xpathExpression evaluate:self 
type:DOM_FIRST_ORDERED_NODE_TYPE inResult:nil];
+    DOMXPathResult *result = [xpathExpression evaluate:self 
type:DOM_ANY_UNORDERED_NODE_TYPE inResult:nil];
     return [result singleNodeValue];
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to