fix xml detection