XAS-56 improve messages to user when XML is invalid
remove unused code - and now show correct icon for scan files