Revision: 22006
          http://sourceforge.net/p/bibdesk/svn/22006
Author:   hofman
Date:     2018-02-22 15:04:07 +0000 (Thu, 22 Feb 2018)
Log Message:
-----------
no need to check for dom document and xml document

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

Modified: trunk/bibdesk/BDSKHCiteParser.m
===================================================================
--- trunk/bibdesk/BDSKHCiteParser.m     2018-02-22 11:02:32 UTC (rev 22005)
+++ trunk/bibdesk/BDSKHCiteParser.m     2018-02-22 15:04:07 UTC (rev 22006)
@@ -54,13 +54,7 @@
 @implementation BDSKHCiteParser
 
 + (BOOL)canParseDocument:(DOMDocument *)domDocument xmlDocument:(NSXMLDocument 
*)xmlDocument fromURL:(NSURL *)url{
-    NSString *htmlString = [(id)[domDocument documentElement] outerHTML];
-    if (nil == htmlString)
-        return NO;
     
-    if(xmlDocument == nil)
-        return NO;
-    
     NSString *containsCitationPath = @"./body//*[contains(concat(' ', 
normalize-space(@class), ' '),' hcite ')]";
     NSError *error = nil;    
     return [[[xmlDocument rootElement] nodesForXPath:containsCitationPath 
error:&error] count] > 0;

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
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to