}
else // phylogenetic file
{
- String identifier = data.toLowerCase();
- String secondLine = source.nextLine().toLowerCase();
- if (identifier.startsWith("<phyloxml")
- || secondLine.startsWith("<phyloxml"))
+ // may also have a <xml header before hand, probably need to check it
+ if (data.toLowerCase(Locale.ROOT).startsWith("<phyloxml"))
{
reply = FileFormat.PhyloXML;
break;