JAL-281 first line also checked for PhyloXML identification
[jalview.git] / 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;