public static ForesterParser createPhyloXmlParser(File file)
throws PhylogenyParserException, IOException
{
- // support non-xsd validating?
+ if (AptxInit.APTX_CONFIG.isValidatePhyloXmlAgainstSchema())
+ {
return new ForesterParser(
- PhyloXmlParser.createPhyloXmlParserXsdValidating(), file);
+ PhyloXmlParser.createPhyloXmlParserXsdValidating(), file);
+ }
+ else
+ {
+ return new ForesterParser(PhyloXmlParser.createPhyloXmlParser(),
+ file);
+ }
}
// ParserBasedPhylogenyFactory.getInstance().create(foresterParser, source)