id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 2516,ILI2 driver slow to detect that big XML files are not ILI2,Even Rouault,pka,"If we do an ogrinfo on a XML file that is neither ILI2, GPX, KML, GML, the Xerces parser of ILI2 driver will try to parse it complitely. The heuristic test is not sufficient or buggy: {{{ /* -------------------------------------------------------------------- */ /* If we aren't sure it is ILI2, load a header chunk and check */ /* for signs it is ILI2 */ /* -------------------------------------------------------------------- */ if( bTestOpen ) { int nLen = (int)VSIFRead( szHeader, 1, sizeof(szHeader), fp ); if (nLen == sizeof(szHeader)) szHeader[sizeof(szHeader)-1] = '\0'; else szHeader[nLen] = '\0'; if( szHeader[0] != '<' && strstr(szHeader,""interlis.ch/INTERLIS2"") == NULL ) { // ""www.interlis.ch/INTERLIS2.2"" VSIFClose( fp ); CSLDestroy( filenames ); return FALSE; } } }}} I would say we should replace the '&&' by a '||' in the test. Right ? Pirmin can you confirm ? ",defect,closed,normal,1.6.0,OGR_SF,unspecified,normal,fixed,ili2,