JAL-281 first line also checked for PhyloXML identification
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 6 Jan 2018 22:36:39 +0000 (22:36 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 6 Jan 2018 22:36:39 +0000 (22:36 +0000)
src/jalview/io/IdentifyFile.java

index a4d6e8b..854a46e 100755 (executable)
@@ -342,7 +342,8 @@ public class IdentifyFile
         }
         else // phylogenetic file?
         {
-          if (source.nextLine().startsWith("<phyloxml"))
+          if (data.startsWith("<phyloxml")
+                  || source.nextLine().startsWith("<phyloxml"))
           {
             reply = FileFormat.PhyloXML;
             break;