Fixed issues with checking for all three XML file types