Use sane FileEnvironment for kind analysis in XML