fixed bug detecting xml file type in linked sources