Made xml loader compatible with symfony 2.2