Made xml loader compatible with symfony 2.2
Merge pull request #349 from mvrhov/sf22Compatibility

Made xml loader compatible with symfony 2.2