Added support for loading xml files as well