added support for xml files as well